Makefile.in (AS_FOR_TARGET, [...]): If gcc/xgcc is built, use -print-prog-name to...
authorAlexandre Oliva <aoliva@redhat.com>
Fri, 8 Jun 2001 03:21:07 +0000 (03:21 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Fri, 8 Jun 2001 03:21:07 +0000 (03:21 +0000)
* Makefile.in (AS_FOR_TARGET, LD_FOR_TARGET, NM_FOR_TARGET): If
gcc/xgcc is built, use -print-prog-name to find out the program
name to use.

From-SVN: r42996

ChangeLog
Makefile.in

index 4695b398ea6f12bf219a15e7f7546db9d79a01bd..5ea7a233aed6abaec5d37cb427de375e252d79c9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-06-08  Alexandre Oliva  <aoliva@redhat.com>, Jeff Sturm  <jsturm@one-point.com>
+
+       * Makefile.in (AS_FOR_TARGET, LD_FOR_TARGET, NM_FOR_TARGET): If
+       gcc/xgcc is built, use -print-prog-name to find out the program
+       name to use.
+
 2001-06-04  Phil Edwards  <pme@sources.redhat.com>
 
        * config.guess:  Import CVS version 1.194.  All gcc-local changes
index 2032fae7d63f51b3d7d815a56846111dbdd1d35a..5e3559f8daf6b4d9d24569c2a3f14d6c8f33a052 100644 (file)
@@ -230,6 +230,8 @@ GCC_FOR_TARGET = $$r/gcc/xgcc -B$$r/gcc/ $(FLAGS_FOR_TARGET)
 AS_FOR_TARGET = ` \
   if [ -f $$r/gas/as-new ] ; then \
     echo $$r/gas/as-new ; \
+  elif [ -f $$r/gcc/xgcc ]; then \
+    $(CC_FOR_TARGET) -print-prog-name=as ; \
   else \
     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
       echo $(AS); \
@@ -241,6 +243,8 @@ AS_FOR_TARGET = ` \
 LD_FOR_TARGET = ` \
   if [ -f $$r/ld/ld-new ] ; then \
     echo $$r/ld/ld-new ; \
+  elif [ -f $$r/gcc/xgcc ]; then \
+    $(CC_FOR_TARGET) -print-prog-name=ld ; \
   else \
     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
       echo $(LD); \
@@ -300,6 +304,8 @@ RANLIB_FOR_TARGET = ` \
 NM_FOR_TARGET = ` \
   if [ -f $$r/binutils/nm-new ] ; then \
     echo $$r/binutils/nm-new ; \
+  elif [ -f $$r/gcc/xgcc ]; then \
+    $(CC_FOR_TARGET) -print-prog-name=nm ; \
   else \
     if [ "$(host_canonical)" = "$(target_canonical)" ] ; then \
       echo $(NM); \