diff options
author | jlam <jlam@pkgsrc.org> | 2004-02-02 11:04:17 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-02-02 11:04:17 +0000 |
commit | 6f3185696f5e0d31b358dfd0644361b5f9b4a6c3 (patch) | |
tree | ec0beff5c60c43eafcaf803c090348a647254c59 /mk/compiler/sunpro.mk | |
parent | 441289a9c089615b6b60fd9fb8e8734d7c0a8216 (diff) | |
download | pkgsrc-6f3185696f5e0d31b358dfd0644361b5f9b4a6c3.tar.gz |
Only prepend the compiler package location to the PATH if we actually
request a compiler that's supported by the named compiler package.
Diffstat (limited to 'mk/compiler/sunpro.mk')
-rw-r--r-- | mk/compiler/sunpro.mk | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mk/compiler/sunpro.mk b/mk/compiler/sunpro.mk index e7b9f839918..0d4a5946550 100644 --- a/mk/compiler/sunpro.mk +++ b/mk/compiler/sunpro.mk @@ -1,10 +1,9 @@ -# $NetBSD: sunpro.mk,v 1.3 2004/02/02 10:03:46 jlam Exp $ +# $NetBSD: sunpro.mk,v 1.4 2004/02/02 11:04:17 jlam Exp $ .if !defined(COMPILER_SUNPRO_MK) COMPILER_SUNPRO_MK= defined SUNWSPROBASE?= /opt/SUNWspro -PATH:= ${SUNWSPROBASE}/bin:${PATH} # LANGUAGES.<compiler> is the list of supported languages by the compiler. # _LANGUAGES.<compiler> is ${LANGUAGES.<compiler>} restricted to the ones @@ -16,6 +15,9 @@ _LANGUAGES.sunpro= # empty _LANGUAGES.sunpro= ${LANGUAGES.sunpro:M${_lang_}} .endfor +.if !empty(_LANGUAGES.sunpro) +PATH:= ${SUNWSPROBASE}/bin:${PATH} +.endif .if !empty(_LANGUAGES.sunpro:Mc) CC= ${SUNWSPROBASE}/bin/cc CPP= ${SUNWSPROBASE}/bin/cc -E |