git://git.jankratochvil.net
/
nethome.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
-lmcheck is now conditioned by -s, not by --fast.
[nethome.git]
/
bin
/
errs1
diff --git
a/bin/errs1
b/bin/errs1
index
715eee0
..
07583ae
100755
(executable)
--- a/
bin/errs1
+++ b/
bin/errs1
@@
-7,7
+7,8
@@
target=
targets=
configure="./configure"
debug="-ggdb2"
targets=
configure="./configure"
debug="-ggdb2"
-ldflags=""
+ldflags="-lmcheck"
+fast=false
while true
do
while true
do
@@
-16,7
+17,12
@@
do
shift
continue
fi
shift
continue
fi
- if [ "$1" = "-shared" ];then
+ if [ "$1" = "--fast" ];then
+ fast=true
+ shift
+ continue
+ fi
+ if [ "$1" = "--shared" ];then
customss="--disable-static --enable-shared"
shift
continue
customss="--disable-static --enable-shared"
shift
continue
@@
-29,7
+35,11
@@
do
fi
if [ "$1" = "-m32" ];then
customm=-m32
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
shift
continue
fi
@@
-43,6
+53,7
@@
do
if [ "$1" = "-s" ];then
# -O0 is important to override GCC -O2.
debug="-O0 -s"
if [ "$1" = "-s" ];then
# -O0 is important to override GCC -O2.
debug="-O0 -s"
+ ldflags=""
shift
continue
fi
shift
continue
fi
@@
-59,14
+70,14
@@
done
-o -f `dirname $configure`/gcc/reload.c;then
maintainer=""
else
-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
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 test -f `dirname $configure`/bfd/elf64-x86-64.c -a '(' -d CVS -o -d .git ')';then
- targets="--enable-targets=all"
- ldflags="-lmcheck"
+ 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"
fi
if test -f `dirname $configure`/gcc/reload.c;then
fi
if test -f `dirname $configure`/gcc/reload.c;then