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

ChangeLog
Makefile.in

index 9a770701c77a686f0964660010b8f1e64e59460b..9ab0fd9315c406938c6c7bf0e359ad34245e0e2c 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  Mark Mitchell  <mark@codesourcery.com>
 
        * ltcf-c.sh (archive_cmds, archive_expsym_cmds) [solaris,
index b56ccb63c472f3d4bf0648f8d12bb514ac90546b..1c83f5c126a668b175d2747a5b94473dc678473c 100644 (file)
@@ -231,6 +231,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); \
@@ -242,6 +244,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); \
@@ -297,6 +301,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); \
This page took 0.028935 seconds and 4 git commands to generate.