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
Workaround Fedora-removed readline/ in gdb.
[nethome.git]
/
bin
/
errs12
diff --git
a/bin/errs12
b/bin/errs12
index
12f18f5
..
164309f
100755
(executable)
--- a/
bin/errs12
+++ b/
bin/errs12
@@
-1,4
+1,4
@@
-#! /bin/sh
+#! /bin/
ba
sh
# $Id$
renice +19 -p $$; ionice -c3 -p $$
# $Id$
renice +19 -p $$; ionice -c3 -p $$
@@
-15,6
+15,7
@@
configure="./configure"
debug="-ggdb2"
ldflags="-lmcheck"
fast=false
debug="-ggdb2"
ldflags="-lmcheck"
fast=false
+readline=""
while true
do
while true
do
@@
-59,7
+60,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=""
+
#
ldflags=""
shift
continue
fi
shift
continue
fi
@@
-93,11
+94,17
@@
rm -f errs1.ok
if test -f `dirname $configure`/gcc/reload.c;then
werror="--disable-werror"
customm=""
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
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 \
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"
export CXXFLAGS_FOR_TARGET="$flags"
export LDFLAGS="$ldflags"
- time nice "$configure" $target $targets $customss --enable-debug --disable-sim --enable-gold --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)) &
(ctags; test -d gdb && (cd gdb; ctags; cd testsuite; ctags; cd ../gdbserver; ctags)) &