Enable --enable-64-bit-bfd even for .tar.gz builds.
[nethome.git] / bin / errs1
index b662f11..69fe5c1 100755 (executable)
--- a/bin/errs1
+++ b/bin/errs1
@@ -7,7 +7,7 @@ target=
 targets=
 configure="./configure"
 debug="-ggdb2"
-ldflags=""
+ldflags="-lmcheck"
 fast=false
 
 while true
@@ -53,6 +53,7 @@ do
        if [ "$1" = "-s" ];then
                # -O0 is important to override GCC -O2.
                debug="-O0 -s"
+               ldflags=""
                shift
                continue
        fi
@@ -75,9 +76,11 @@ done
        if test -f `dirname $configure`/bfd/elf64-x86-64.c;then
                test -f g77 || (test -f /usr/bin/gfortran && ln -s /usr/bin/gfortran g77)
        fi
+       if ! $fast;then
+               targets="$targets --enable-64-bit-bfd"
+       fi
        if ! $fast && test -f `dirname $configure`/bfd/elf64-x86-64.c -a '(' -d CVS -o -d .git ')';then
-               targets="--enable-targets=all --enable-64-bit-bfd"
-               ldflags="-lmcheck"
+               targets="$targets --enable-targets=all"
        fi
 
        if test -f `dirname $configure`/gcc/reload.c;then