pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/compiler _CC is really meant to be evaluated from t...
details: https://anonhg.NetBSD.org/pkgsrc/rev/8e4957dc0de7
branches: trunk
changeset: 467674:8e4957dc0de7
user: jlam <jlam%pkgsrc.org@localhost>
date: Thu Feb 05 01:50:55 2004 +0000
description:
_CC is really meant to be evaluated from the value of CC _as found_ in
that particular location, so set it using :=
diffstat:
mk/compiler/gcc.mk | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (31 lines):
diff -r d73ab67a570a -r 8e4957dc0de7 mk/compiler/gcc.mk
--- a/mk/compiler/gcc.mk Thu Feb 05 01:42:05 2004 +0000
+++ b/mk/compiler/gcc.mk Thu Feb 05 01:50:55 2004 +0000
@@ -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 @@
_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*)
Home |
Main Index |
Thread Index |
Old Index