pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/compiler When calling gcc to extract the version nu...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d77e5f18951b
branches:  trunk
changeset: 532111:d77e5f18951b
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sat Aug 11 17:31:22 2007 +0000

description:
When calling gcc to extract the version number, pass down
ALL_ENV as well. This ensures that any locale settings are
overridden and the output matches what pkgsrc expects.

This should fix some of the strange bootstrap issues seen over
time that were seemingly fxied by USE_NATIVE_GCC=yes.

diffstat:

 mk/compiler/gcc.mk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 111460973262 -r d77e5f18951b mk/compiler/gcc.mk
--- a/mk/compiler/gcc.mk        Sat Aug 11 17:20:16 2007 +0000
+++ b/mk/compiler/gcc.mk        Sat Aug 11 17:31:22 2007 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: gcc.mk,v 1.91 2007/08/02 18:19:32 joerg Exp $
+# $NetBSD: gcc.mk,v 1.92 2007/08/11 17:31:22 joerg Exp $
 #
 # This is the compiler definition for the GNU Compiler Collection.
 #
@@ -48,7 +48,7 @@
 
 .if !defined(_GCC_VERSION)
 _GCC_VERSION_STRING!=  \
-       ( ${_CC} -v 2>&1 | ${GREP} 'gcc version' ) 2>/dev/null || ${ECHO} 0
+       ( ${SETENV} ${ALL_ENV} ${_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