X-Git-Url: https://git.jankratochvil.net/?a=blobdiff_plain;f=bin%2Ferrs1;h=37d82907d9e5957dc2d71fe267853b8d3417ac9f;hb=263e1014643f10a9307951f7a1755d820cb9a109;hp=ab30d3b9592c4a471d68dd2cb4ec12c5a2e0bbbe;hpb=c3353ef68a5fe090f083f0d0dfbb87e62e42f357;p=nethome.git diff --git a/bin/errs1 b/bin/errs1 index ab30d3b..37d8290 100755 --- a/bin/errs1 +++ b/bin/errs1 @@ -22,6 +22,7 @@ fi ( set -ex rm -f config.cache + test -z "$CC" && CC=gcc : >errs1.c for flags in \ "-ggdb2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4" \ @@ -33,14 +34,22 @@ fi echo >&2 "flags error" exit 1 fi - gcc $flags -c errs1.c -o /dev/null && break + "$CC" $flags -c errs1.c -o /dev/null && break done - if test -n "$customm" && gcc $customm -c errs1.c -o /dev/null;then + if test -n "$customm" && "$CC" $customm -c errs1.c -o /dev/null;then flags="$customm $flags" fi rm -f errs1.c export CFLAGS="$flags" export CXXFLAGS="$flags" export GCJFLAGS="$flags" - time nice "$configure" $customss --enable-debug "$@" + + # sourceware.org? + if test -f `dirname $configure`/bfd/elf64-x86-64.c;then + maintainer="" + else + maintainer="--enable-maintainer-mode" + fi + + time nice "$configure" $customss --enable-debug $maintainer "$@" ) 2>&1|tee errs1