diff options
author | jlam <jlam@pkgsrc.org> | 2004-02-05 01:50:55 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2004-02-05 01:50:55 +0000 |
commit | e14bd051b8f0cefc5894065d37f5ea72da591ad3 (patch) | |
tree | b1041ea27206fa41d5d7c8d71283ee12a3622206 /mk/compiler | |
parent | 998d6a0b9cd4e4c1f0c2d08062ab52d10805a225 (diff) | |
download | pkgsrc-e14bd051b8f0cefc5894065d37f5ea72da591ad3.tar.gz |
_CC is really meant to be evaluated from the value of CC _as found_ in
that particular location, so set it using :=
Diffstat (limited to 'mk/compiler')
-rw-r--r-- | mk/compiler/gcc.mk | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/mk/compiler/gcc.mk b/mk/compiler/gcc.mk index 9d71ff169e5..2e388e076e8 100644 --- a/mk/compiler/gcc.mk +++ b/mk/compiler/gcc.mk @@ -1,4 +1,4 @@ -# $NetBSD: gcc.mk,v 1.33 2004/02/05 01:42:05 jlam Exp $ +# $NetBSD: gcc.mk,v 1.34 2004/02/05 01:50:55 jlam Exp $ .if !defined(COMPILER_GCC_MK) COMPILER_GCC_MK= defined @@ -18,17 +18,18 @@ _GCC2_PATTERNS= 2.8 2.8.* 2.9 2.9.* 2.[1-8][0-9] 2.[1-8][0-9].* \ _GCC3_PATTERNS= 2.95.[4-9]* 2.95.[1-9][0-9]* 2.9[6-9] 2.9[6-9].* \ 2.[1-9][0-9][0-9]* 3.* [4-9]* -_CC= ${CC:C/^/_asdf_/1:M_asdf_*:S/^_asdf_//} +_CC:= ${CC:C/^/_asdf_/1:M_asdf_*:S/^_asdf_//} .for _dir_ in ${PATH:C/\:/ /g} . if empty(_CC:M/*) . if exists(${_dir_}/${CC:C/^/_asdf_/1:M_asdf_*:S/^_asdf_//}) -_CC= ${_dir_}/${CC:C/^/_asdf_/1:M_asdf_*:S/^_asdf_//} +_CC:= ${_dir_}/${CC:C/^/_asdf_/1:M_asdf_*:S/^_asdf_//} . endif . endif .endfor .if !defined(_GCC_VERSION) -_GCC_VERSION_STRING!= ( ${_CC} -v 2>&1 | ${GREP} 'gcc version' ) || ${ECHO} 0 +_GCC_VERSION_STRING!= \ + ( ${_CC} -v 2>&1 | ${GREP} 'gcc version' ) 2>/dev/null || ${ECHO} 0 . if !empty(_GCC_VERSION_STRING:Megcs*) _GCC_VERSION= 2.8.1 # egcs is considered to be gcc-2.8.1. . elif !empty(_GCC_VERSION_STRING:Mgcc*) |