aboutsummaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-10-08 14:41:43 +0000
committerIan Lance Taylor <ian@airs.com>1996-10-08 14:41:43 +0000
commitd5a8bfde90285188640879d2791ada8976e0c12c (patch)
treef27f966e574da87eaca93d9de06a7eac95a59b69 /Makefile.in
parent1217102f2cd028df972170ee0c79d510b62381e7 (diff)
downloadgdb-d5a8bfde90285188640879d2791ada8976e0c12c.zip
gdb-d5a8bfde90285188640879d2791ada8976e0c12c.tar.gz
gdb-d5a8bfde90285188640879d2791ada8976e0c12c.tar.bz2
Patches from Geoffrey Noer <noer@cygnus.com>:
* configure.in: If configuring for newlib, pass --with-newlib to subdirectories. * Makefile.in (CC_FOR_TARGET): If winsup/Makefile exists, pass a -Bnewlib/ and -Lwinsup to gcc. (CXX_FOR_TARGET): Likewise.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in12
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in
index 06d6de2..2b47d35 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -172,7 +172,11 @@ INSTALL_TARGET = install-dirs \
CC_FOR_TARGET = ` \
if [ -f $$r/gcc/Makefile ] ; then \
if [ -f $$r/$(TARGET_SUBDIR)/newlib/Makefile ] ; then \
- echo $$r/gcc/xgcc -B$$r/gcc/ -idirafter $$r/$(TARGET_SUBDIR)/newlib/targ-include -idirafter $${srcroot}/newlib/libc/include -nostdinc; \
+ if [ -f $$r/$(TARGET_SUBDIR)/winsup/Makefile ] ; then \
+ echo $$r/gcc/xgcc -B$$r/gcc/ -B$$r/newlib/ -L$$r/winsup -idirafter $$r/$(TARGET_SUBDIR)/newlib/targ-include -idirafter $${srcroot}/newlib/libc/include -nostdinc; \
+ else \
+ echo $$r/gcc/xgcc -B$$r/gcc/ -idirafter $$r/$(TARGET_SUBDIR)/newlib/targ-include -idirafter $${srcroot}/newlib/libc/include -nostdinc; \
+ fi; \
else \
echo $$r/gcc/xgcc -B$$r/gcc/; \
fi; \
@@ -201,7 +205,11 @@ CHILL_FOR_TARGET = ` \
CXX_FOR_TARGET = ` \
if [ -f $$r/gcc/Makefile ] ; then \
if [ -f $$r/$(TARGET_SUBDIR)/newlib/Makefile ] ; then \
- echo $$r/gcc/xgcc -B$$r/gcc/ -idirafter $$r/$(TARGET_SUBDIR)/newlib/targ-include -idirafter $${srcroot}/newlib/libc/include -nostdinc; \
+ if [ -f $$r/$(TARGET_SUBDIR)/winsup/Makefile ] ; then \
+ echo $$r/gcc/xgcc -B$$r/gcc/ -B$$r/newlib/ -L$$r/winsup -idirafter $$r/$(TARGET_SUBDIR)/newlib/targ-include -idirafter $${srcroot}/newlib/libc/include -nostdinc; \
+ else \
+ echo $$r/gcc/xgcc -B$$r/gcc/ -idirafter $$r/$(TARGET_SUBDIR)/newlib/targ-include -idirafter $${srcroot}/newlib/libc/include -nostdinc; \
+ fi; \
else \
echo $$r/gcc/xgcc -B$$r/gcc/; \
fi; \