X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=blobdiff_plain;f=bin%2Ferrs12;h=164309f60c4022d337ce49927efb0644749858b2;hp=2c886959d33ce0b9b90a5edda785c0d881a1e0cb;hb=6d138c2428ecc2da3dd693272c0cb632b9311076;hpb=298afdabb6a05c89f72bad7052992ecb5030b816 diff --git a/bin/errs12 b/bin/errs12 index 2c88695..164309f 100755 --- a/bin/errs12 +++ b/bin/errs12 @@ -1,4 +1,4 @@ -#! /bin/sh +#! /bin/bash # $Id$ renice +19 -p $$; ionice -c3 -p $$ @@ -15,6 +15,7 @@ configure="./configure" debug="-ggdb2" ldflags="-lmcheck" fast=false +readline="" while true do @@ -59,7 +60,7 @@ do if [ "$1" = "-s" ];then # -O0 is important to override GCC -O2. debug="-O0 -s" - ldflags="" + #ldflags="" shift continue fi @@ -93,11 +94,17 @@ rm -f errs1.ok if test -f `dirname $configure`/gcc/reload.c;then werror="--disable-werror" customm="" - customss="--disable-static --enable-shared" + # --disable-static would fail on finding built libstdc++ due to -static-libstdc++. + customss="" else werror="" fi + if test -d readline/doc && ! test -e readline/readline.c;then + # Fedora gdb.spec prep. + readline="--with-system-readline" + fi + test -z "$CC" && CC=gcc : >errs1.c for flags in \ @@ -123,7 +130,7 @@ rm -f errs1.ok export CXXFLAGS_FOR_TARGET="$flags" export LDFLAGS="$ldflags" - time nice "$configure" $target $targets $customss --enable-debug --disable-sim --enable-gold=both --enable-plugins $maintainer $werror --with-separate-debug-dir=/usr/lib/debug "$@" + time nice "$configure" $target $targets $customss $readline --enable-debug --disable-sim --enable-gold --enable-plugins $maintainer $werror --with-separate-debug-dir=/usr/lib/debug "$@" (ctags; test -d gdb && (cd gdb; ctags; cd testsuite; ctags; cd ../gdbserver; ctags)) &