diff options
author | Ian Lance Taylor <ian@airs.com> | 1996-10-08 14:41:43 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1996-10-08 14:41:43 +0000 |
commit | d5a8bfde90285188640879d2791ada8976e0c12c (patch) | |
tree | f27f966e574da87eaca93d9de06a7eac95a59b69 /Makefile.in | |
parent | 1217102f2cd028df972170ee0c79d510b62381e7 (diff) | |
download | binutils-gdb-d5a8bfde90285188640879d2791ada8976e0c12c.tar.gz |
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.in | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in index 06d6de26428..2b47d351734 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; \ |