diff options
author | jlam <jlam> | 2004-02-06 03:04:50 +0000 |
---|---|---|
committer | jlam <jlam> | 2004-02-06 03:04:50 +0000 |
commit | d446ccd672bee0419a7fe14c5a48da4d9057d5b9 (patch) | |
tree | 429ebb5ed1cad414f69277d63bfae94e1170955a /mk/compiler/mipspro.mk | |
parent | 8f09416c8a3e46929130c54844cab505f73727bc (diff) | |
download | pkgsrc-d446ccd672bee0419a7fe14c5a48da4d9057d5b9.tar.gz |
We only prepend a directory to the PATH if we haven't already done so
(by checking PREPEND_PATH) and only for those phases of the build that
care about the PATH (buildlink or later). We also pass the PATH to
those same phases of the build so that executing ${CC} will work correctly
from custom {pre,do,post}-* targets that occur at buildlink time or
later.
Diffstat (limited to 'mk/compiler/mipspro.mk')
-rw-r--r-- | mk/compiler/mipspro.mk | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/mk/compiler/mipspro.mk b/mk/compiler/mipspro.mk index 6da479e238a..0868c146c13 100644 --- a/mk/compiler/mipspro.mk +++ b/mk/compiler/mipspro.mk @@ -1,4 +1,4 @@ -# $NetBSD: mipspro.mk,v 1.11 2004/02/05 22:05:42 jlam Exp $ +# $NetBSD: mipspro.mk,v 1.12 2004/02/06 03:04:50 jlam Exp $ .if !defined(COMPILER_MIPSPRO_MK) COMPILER_MIPSPRO_MK= one @@ -40,7 +40,11 @@ COMPILER_MIPSPRO_MK+= two # Prepend the path to the compiler to the PATH. . if !empty(_LANGUAGES.mipspro) -PATH:= ${MIPSPROBASE}/bin:${PATH} +. if !empty(PHASES_AFTER_BUILDLINK:M${PKG_PHASE}) && \ + empty(PREPEND_PATH:M${MIPSPROBASE}/bin) +PREPEND_PATH+= ${MIPSPROBASE}/bin +PATH:= ${MIPSPROBASE}/bin:${PATH} +. endif . endif . endif # COMPILER_MIPSPRO_MK .endif # BSD_PREFS_MK |