Improve the `-m32' option.
authorlace <>
Fri, 5 Dec 2008 18:31:30 +0000 (18:31 +0000)
committerlace <>
Fri, 5 Dec 2008 18:31:30 +0000 (18:31 +0000)
Always disable --enable-maintainer-mode.

bin/errs1

index 287fbcf..b662f11 100755 (executable)
--- a/bin/errs1
+++ b/bin/errs1
@@ -35,7 +35,11 @@ do
        fi
        if [ "$1" = "-m32" ];then
                customm=-m32
-               target=i386-unknown-linux-gnu
+               case `uname -m` in
+                 i?86|x86_64|ia64) target=i386-unknown-linux-gnu ;;
+                 ppc*)             target=powerpc64-unknown-linux-gnu ;;
+                 s390*)            target=s390-unknown-linux-gnu ;;
+               esac
                shift
                continue
        fi
@@ -65,13 +69,14 @@ done
             -o -f `dirname $configure`/gcc/reload.c;then
                maintainer=""
        else
-               maintainer="--enable-maintainer-mode"
+               :
+#              maintainer="--enable-maintainer-mode"
        fi
        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 && test -f `dirname $configure`/bfd/elf64-x86-64.c -a '(' -d CVS -o -d .git ')';then
-               targets="--enable-targets=all"
+               targets="--enable-targets=all --enable-64-bit-bfd"
                ldflags="-lmcheck"
        fi