* Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): Use newlib if it is
authorJ.T. Conklin <jtc@acorntoolworks.com>
Thu, 28 Jul 1994 21:23:28 +0000 (21:23 +0000)
committerJ.T. Conklin <jtc@acorntoolworks.com>
Thu, 28 Jul 1994 21:23:28 +0000 (21:23 +0000)
  there and we are using the gcc from the tree.

* gdb.base/types.c: Removed.

gdb/testsuite/ChangeLog
gdb/testsuite/Makefile.in

index e46d6ce..a5fcb65 100644 (file)
@@ -1,5 +1,10 @@
 Thu Jul 28 12:54:07 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
 
+       * Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): Use newlib if it is
+         there and we are using the gcc from the tree.
+
+       * gdb.base/types.c: Removed.
+
        * gdb.base/configure.in: Look for makefile fragments in ../config.
          Recognize i386-*-netware.
        * gdb.c++/configure.in: Likewise.
index 7b95d29..99bd029 100644 (file)
@@ -82,7 +82,11 @@ RUNTEST_FOR_TARGET = `\
 
 CC_FOR_TARGET = ` \
   if [ -f $${rootme}/../../gcc/xgcc ] ; then \
-    echo $${rootme}/../../gcc/xgcc -B$${rootme}/../../gcc/; \
+    if [ -f $${rootme}/../../newlib/Makefile ]; then \
+      echo $${rootme}/../../gcc/xgcc -B$${rootme}/../../gcc/ -idirafter $${rootme}/../../newlib/targ-include -idirafter $${rootsrc}/../../newlib/libc/include -nostdinc; \
+    else \
+      echo $${rootme}/../../gcc/xgcc -B$${rootme}/../../gcc/; \
+    fi; \
   else \
     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
       echo $(CC); \
@@ -94,7 +98,11 @@ CC_FOR_TARGET = ` \
 CXX = gcc
 CXX_FOR_TARGET = ` \
   if [ -f $${rootme}/../../gcc/xgcc ] ; then \
-    echo $${rootme}/../../gcc/xgcc -B$${rootme}/../../gcc/; \
+    if [ -f $${rootme}/../../newlib/Makefile ]; then
+      echo $${rootme}/../../gcc/xgcc -B$${rootme}/../../gcc/ -idirafter $${rootme}/../../newlib/targ-include -idirafter $${rootsrc}/../../newlib/libc/include -nostdinc; \
+    else \
+      echo $${rootme}/../../gcc/xgcc -B$${rootme}/../../gcc/; \
+    fi; \
   else \
     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
       echo $(CXX); \