aboutsummaryrefslogtreecommitdiff
path: root/gdb/Makefile.in
diff options
context:
space:
mode:
authorJ.T. Conklin <jtc@acorntoolworks.com>1994-07-29 17:08:25 +0000
committerJ.T. Conklin <jtc@acorntoolworks.com>1994-07-29 17:08:25 +0000
commit998b321b939c4e4905f921af78f4b00117fa02f8 (patch)
treead86f6c5d8afa643d9a4105b31fdfddfc22950a2 /gdb/Makefile.in
parentb933a608ed7d3ecce17fcff1841c92d1b432cc7b (diff)
downloadgdb-998b321b939c4e4905f921af78f4b00117fa02f8.zip
gdb-998b321b939c4e4905f921af78f4b00117fa02f8.tar.gz
gdb-998b321b939c4e4905f921af78f4b00117fa02f8.tar.bz2
* Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): If using newlib,
set the -L and -B directory prefixes so we can link with it.
Diffstat (limited to 'gdb/Makefile.in')
-rw-r--r--gdb/Makefile.in5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index cfbbd18..469cbdb 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -234,7 +234,7 @@ FLAGS_TO_PASS = \
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; \
@@ -247,11 +247,10 @@ CC_FOR_TARGET = ` \
fi`
CXX = gcc
-
CXX_FOR_TARGET = ` \
if [ -f $${rootme}/../gcc/Makefile ] ; 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; \