git://git.jankratochvil.net
/
nethome.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
21ed4ea
)
Workaround Fedora-removed readline/ in gdb.
author
Jan Kratochvil
<jan.kratochvil@redhat.com>
Fri, 2 Mar 2012 19:37:05 +0000
(20:37 +0100)
committer
Jan Kratochvil
<jan.kratochvil@redhat.com>
Fri, 2 Mar 2012 19:37:05 +0000
(20:37 +0100)
bin/errs12
patch
|
blob
|
history
diff --git
a/bin/errs12
b/bin/errs12
index
e7c7e07
..
164309f
100755
(executable)
--- a/
bin/errs12
+++ b/
bin/errs12
@@
-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
@@
-99,6
+100,11
@@
rm -f errs1.ok
werror=""
fi
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 \
@@
-124,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)) &