diff options
author | J.T. Conklin <jtc@acorntoolworks.com> | 1995-02-16 00:35:53 +0000 |
---|---|---|
committer | J.T. Conklin <jtc@acorntoolworks.com> | 1995-02-16 00:35:53 +0000 |
commit | be813d0223e118713d9d8627b6a0b720eb101970 (patch) | |
tree | 0581afe18de562cdf39a997512f6afda080c3df1 /gdb/testsuite/Makefile.in | |
parent | bd749fdd7abebb472d78c9e6da667161e7617a92 (diff) | |
download | gdb-be813d0223e118713d9d8627b6a0b720eb101970.zip gdb-be813d0223e118713d9d8627b6a0b720eb101970.tar.gz gdb-be813d0223e118713d9d8627b6a0b720eb101970.tar.bz2 |
* Makefile.in, gdb.{base,c++,chill}/Makefile.in (GDB): If a gdb
executable is not in the tree and host != target, use sed and
program_transform_name to determine the gdb name used by the
target.
Diffstat (limited to 'gdb/testsuite/Makefile.in')
-rw-r--r-- | gdb/testsuite/Makefile.in | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/gdb/testsuite/Makefile.in b/gdb/testsuite/Makefile.in index 92c16f2..0647860 100644 --- a/gdb/testsuite/Makefile.in +++ b/gdb/testsuite/Makefile.in @@ -83,7 +83,7 @@ RUNTEST_FOR_TARGET = `\ CC_FOR_TARGET = ` \ if [ -f $${rootme}/../../gcc/xgcc ] ; then \ if [ -f $${rootme}/../../newlib/Makefile ]; then \ - echo $${rootme}/../../gcc/xgcc -B$${rootme}/../../gcc/ -idirafter $${rootme}/../../newlib/targ-include -idirafter $${rootsrc}/../../newlib/libc/include -nostdinc; \ + echo $${rootme}/../../gcc/xgcc -B$${rootme}/../../gcc/ -idirafter $${rootme}/../../newlib/targ-include -idirafter $${rootsrc}/../../newlib/libc/include -nostdinc -L$${rootme}/../../newlib -B$${rootme}/../../newlib/; \ else \ echo $${rootme}/../../gcc/xgcc -B$${rootme}/../../gcc/; \ fi; \ @@ -99,7 +99,7 @@ CXX = gcc CXX_FOR_TARGET = ` \ if [ -f $${rootme}/../../gcc/xgcc ] ; then \ if [ -f $${rootme}/../../newlib/Makefile ]; then \ - echo $${rootme}/../../gcc/xgcc -B$${rootme}/../../gcc/ -idirafter $${rootme}/../../newlib/targ-include -idirafter $${rootsrc}/../../newlib/libc/include -nostdinc; \ + echo $${rootme}/../../gcc/xgcc -B$${rootme}/../../gcc/ -idirafter $${rootme}/../../newlib/targ-include -idirafter $${rootsrc}/../../newlib/libc/include -nostdinc -L$${rootme}/../../newlib -B$${rootme}/../../newlib/; \ else \ echo $${rootme}/../../gcc/xgcc -B$${rootme}/../../gcc/; \ fi; \ @@ -136,9 +136,14 @@ CHILL_LIB = ` \ # end-sanitize-chill GDB = ` \ - if [ -f $${rootme}/../gdb ] ; \ - then echo $${rootme}|sed -e 's@/[^/]*$$@@'|sed -e 's@$$@/gdb@' ; \ - else echo gdb; \ + if [ -f $${rootme}/../gdb ] ; then \ + echo $${rootme}/../gdb ; \ + else \ + if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \ + echo gdb; \ + else \ + t='$(program_transform_name)'; echo gdb | sed -e '' $$t; \ + fi; \ fi` GDBFLAGS = -nx @@ -195,7 +200,9 @@ site.exp: ./config.status Makefile @echo "# Do not edit here. If you wish to override these values" >> ./tmp0 @echo "# add them to the last section" >> ./tmp0 @echo "set GDBFLAGS \"${GDBFLAGS}\"" >> ./tmp0 + @echo "set host_alias $(host_alias)" >> ./tmp0 @echo "set host_triplet ${host_canonical}" >> ./tmp0 + @echo "set target_alias $(target_alias)" >> ./tmp0 @echo "set target_triplet ${target_canonical}" >> ./tmp0 @echo "set srcdir ${srcdir}" >> ./tmp0 @echo "set tool gdb" >> ./tmp0 |