* Makefile.in (GCC_FOR_TARGET): Add options to find newlib and
authorDoug Evans <dje@google.com>
Wed, 22 Apr 1998 19:33:56 +0000 (19:33 +0000)
committerDoug Evans <dje@google.com>
Wed, 22 Apr 1998 19:33:56 +0000 (19:33 +0000)
libgloss.  Add comment that we should be using dejagnu.

sim/testsuite/sky/ChangeLog
sim/testsuite/sky/Makefile.in

index efe5487726af45dabb85a54d36a2a3a3de33ee80..9dd2fa4cf54e90839c038e936af721d3e834a256 100644 (file)
@@ -1,3 +1,8 @@
+Wed Apr 22 11:32:31 1998  Doug Evans  <devans@canuck.cygnus.com>
+
+       * Makefile.in (GCC_FOR_TARGET): Add options to find newlib and
+       libgloss.  Add comment that we should be using dejagnu.
+
 Tue Apr 21 17:48:28 EDT 1998 Jillian Ye <jillian@cygnus.com>
 
         * Use GIF_TRACE to generate sce_test*_our_gif.dat files
index 51b35f308757edb37228b941dc1db21d9687b793..97ee30953fef68045ae34bc4929134e69e24b6ce 100644 (file)
@@ -78,9 +78,15 @@ RUN_FOR_TARGET := `\
     echo $(target_alias)-run ; \
   fi` $(RUNOPTS)
 
+# ??? This definition a hack.
+# This should be named CC_FOR_TARGET but the top level Makefile doesn't
+# specify -B.../libgloss/mips/.  But then again we should be using
+# dejagnu anyway [which handles this, among other things].
+
 GCC_FOR_TARGET := `\
-  if [ -x ../../../gcc/xgcc ]; then \
-    echo ../../../gcc/xgcc ; \
+  b=../../.. ; s=$(srcdir)/../../.. ; \
+  if [ -x $$b/gcc/xgcc ]; then \
+    echo "$$b/gcc/xgcc -B$$b/gcc/ -B$$b/$(target_alias)/libgloss/mips/ -B$$b/$(target_alias)/newlib/ -idirafter $$b/$(target_alias)/newlib/targ-include -idirafter $$s/newlib/libc/include -nostdinc" ; \
   else \
     echo $(target_alias)-gcc ; \
   fi`