X-Git-Url: http://git.samba.org/?a=blobdiff_plain;f=generic.fns;h=74e1a677ac1fbcc229a380f0c4030b3f4b79134e;hb=ea33a4b55a557c3fb481ffb0d09cda3f82b86755;hp=65a0b2033f11322c15240468deb999b896a32be1;hpb=f2a700fcfc241591c46e8435bd264d5c3f4dddac;p=build-farm.git diff --git a/generic.fns b/generic.fns index 65a0b203..74e1a677 100644 --- a/generic.fns +++ b/generic.fns @@ -7,15 +7,21 @@ system=`uname` ENVCFLAGS=$CFLAGS cur_compiler_sum="" last_compiler_sum="" -for compiler in gcc cc icc; do +if [ "x$compilers" = "x" ]; then + compilers="gcc cc icc" +fi + +for compiler in $compilers; do + + echo "working with compiler $compiler" # arrgh, "which" gives no err code on solaris path=`which $compiler` if [ -x "$path" ]; then # We do not want to build with the same compiler twice # cc is a symlink to gcc on some systems - cur_compiler_sum="`sum $path`" + cur_compiler_sum="`sum $path | sed 's/ .*//'`" test x"$cur_compiler_sum" = x"" && { cur_compiler_sum="$path" } @@ -26,17 +32,24 @@ for compiler in gcc cc icc; do if $compiler -v 2>&1 | grep gcc.version > /dev/null; then isgcc=1 - CFLAGS="$ENVCFLAGS -Wall" + CFLAGS="$ENVCFLAGS -Wall -g" else isgcc=0 - CFLAGS="$ENVCFLAGS" + CFLAGS="$ENVCFLAGS -g" fi + CFLAGS_THIS_COMPILER=`eval CFLAGS_$compiler 2>/dev/null` if [ $? = 0 ] ; then - CFLAGS="$CFLAGS_THIS_COMPILER $CFLAGS" + CFLAGS="$CFLAGS_THIS_COMPILER $CFLAGS" fi export CFLAGS - test_tree samba_4_0_test source4 $compiler + + TDB_NO_FSYNC=1 + export TDB_NO_FSYNC + test_tree samba_4_0_test . $compiler + TDB_NO_FSYNC=0 + export TDB_NO_FSYNC + if [ $compiler = gcc -o $isgcc = 0 ]; then . common.fns test_tree lorikeet-heimdal . $compiler @@ -46,9 +59,12 @@ for compiler in gcc cc icc; do test_tree samba-gtk . $compiler fi - test_tree samba_3_current source $compiler - test_tree samba_3_next source $compiler - test_tree samba_3_master source $compiler + TDB_NO_FSYNC=1 + export TDB_NO_FSYNC + test_tree samba_3_current source3 $compiler + test_tree samba_3_next source3 $compiler + TDB_NO_FSYNC=0 + export TDB_NO_FSYNC # by default build ppp only on SunOS or Linux systems if [ "$system" = Linux -o "$system" = SunOS ]; then @@ -56,11 +72,12 @@ for compiler in gcc cc icc; do fi fi fi -done -# only attempt pidl if we have perl -if which perl > /dev/null; then - test_tree pidl . cc -fi + # only attempt pidl if we have perl + if which perl > /dev/null; then + test_tree pidl . cc + fi + +done global_unlock