X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=blobdiff_plain;f=bin%2Ferrs12;h=a679861588e5441ab30327f0566aa0eea637e99c;hp=634e7e25496a4486518dd1d9bd1eed1d979fb3c0;hb=4e621b85cdc130479357d4920e4c088407fa3248;hpb=0e92d8c1c45154d13a836231b4ef465aac32a747 diff --git a/bin/errs12 b/bin/errs12 index 634e7e2..a679861 100755 --- a/bin/errs12 +++ b/bin/errs12 @@ -1,11 +1,11 @@ -#! /bin/sh +#! /bin/bash # $Id$ renice +19 -p $$; ionice -c3 -p $$ -# For ctags -PS1=x -. ~/.bashrc +# Do not use for ctags - it would override $PATH: +# PS1=x; . ~/.bashrc +function ctags {(unset ctags; PS1=x; . ~/.bashrc; ctags; );} customss="--enable-static --disable-shared" customm="-m64" @@ -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,19 @@ rm -f errs1.ok if test -f `dirname $configure`/gcc/reload.c;then werror="--disable-werror" customm="" + # --disable-static would fail on finding built libstdc++ due to -static-libstdc++. + # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49829 + #customss="" customss="--disable-static --enable-shared" 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 +132,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 $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)) &