X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=blobdiff_plain;f=bin%2Ferrs1;h=bcd0c760c9ed3acc4be8d68dd7d911400206f57b;hp=20fce10aa44c77079b9910d049354371066a41d2;hb=597ebee58f5cf7aaae4c17704e763967a32583ab;hpb=ebf5a5d26042004ad3360637529d239b059f4d95 diff --git a/bin/errs1 b/bin/errs1 index 20fce10..bcd0c76 100755 --- a/bin/errs1 +++ b/bin/errs1 @@ -7,6 +7,7 @@ target= targets= configure="./configure" debug="-ggdb2" +ldflags="" while true do @@ -63,6 +64,7 @@ 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) targets="--enable-targets=all" + ldflags="-lmcheck" fi if test -f `dirname $configure`/gcc/reload.c;then @@ -96,6 +98,7 @@ done export GCJFLAGS="$flags" export CFLAGS_FOR_TARGET="$flags" export CXXFLAGS_FOR_TARGET="$flags" + export LDFLAGS="$ldflags" time nice "$configure" $target $targets $customss --enable-debug $maintainer $werror "$@" ) 2>&1|tee errs1