Thu Oct 8 15:07:22 1992 Ian Lance Taylor (ian@cygnus.com)
authorIan Lance Taylor <ian@airs.com>
Thu, 8 Oct 1992 22:09:32 +0000 (22:09 +0000)
committerIan Lance Taylor <ian@airs.com>
Thu, 8 Oct 1992 22:09:32 +0000 (22:09 +0000)
* Makefile.in (XTRAFLAGS): include newlib directories if
newlib/Makefile exists, rather than if host != target.

ChangeLog
Makefile.in

index 20b9d4097bbfb15612733da3db8b4c7e65e1dd71..478a09a93cc99d8e21e2a8e23027deebf023bf4d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Oct  8 15:07:22 1992  Ian Lance Taylor  (ian@cygnus.com)
+
+       * Makefile.in (XTRAFLAGS): include newlib directories if
+       newlib/Makefile exists, rather than if host != target.
+
 Mon Oct  5 03:00:09 1992  Mark Eichin  (eichin at tweedledumber.cygnus.com)
 
        * config.sub: recognize sparclite-wrs-vxworks.
index 3ceda70c39f889ffb3939ae99f55bf15f27e8130..59ccaf051960dc59b66482aa0b5aa88bd9a08b24 100644 (file)
@@ -139,10 +139,10 @@ NM_FOR_TARGET = ` \
 
 XTRAFLAGS = ` \
   if [ -f $${rootme}/gcc/Makefile ] ; then \
-    if [ "$(host_cpu)-$(host_vendor)-$(host_os)" = "$(target_cpu)-$(target_vendor)-$(target_os)" ] ; then \
-      echo -I$${rootme}/gcc/include ; \
+    if [ -f $${rootme}/newlib/Makefile ] ; then \
+      echo -I$${rootme}/newlib/targ-include -I$${srcroot}/newlib/libc/include -I$${rootme}/gcc/include -nostdinc ; \
     else \
-      echo -I$${rootme}/gcc/include -I$${rootme}/newlib/targ-include -I$${srcroot}/newlib/libc/include -nostdinc ; \
+      echo -I$${rootme}/gcc/include ; \
     fi ; \
   else \
      echo ; \