Build farm patch: generic.fns
William Jojo
jojowil at hvcc.edu
Wed May 7 20:06:27 GMT 2008
I would like to suggest the following patche to sanitize my AIX world. :-) :-)
--- generic.fns.orig 2008-05-07 06:49:30.000000000 -0400
+++ generic.fns 2008-05-07 06:53:55.000000000 -0400
@@ -6,17 +6,19 @@
for compiler in gcc cc icc; do
+ ENVCFLAGS=$CFLAGS
# arrgh, "which" gives no err code on solaris
path=`which $compiler`
if [ -x "$path" ]; then
if $compiler -v 2>&1 | grep gcc.version > /dev/null; then
isgcc=1
- CFLAGS="$CFLAGS -Wall"
- export CFLAGS
+ CFLAGS="$ENVCFLAGS -Wall"
else
isgcc=0
+ CFLAGS="$ENVCFLAGS"
fi
+ export CFLAGS
if [ $compiler = gcc -o $isgcc = 0 ]; then
. common.fns
test_tree lorikeet-heimdal . $compiler
This fixes CFLAGS still being set with -Wall which breaks the cc build run after the gcc one is complete.
Cheers,
Bill
More information about the samba-technical
mailing list