Fix computation of CXX_FOR_TARGET so that it can detect an in-tree xg++ executable.
authorNick Clifton <nickc@redhat.com>
Thu, 18 Feb 2016 10:10:36 +0000 (10:10 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 18 Feb 2016 10:10:36 +0000 (10:10 +0000)
* Makefile.am (CXX_FOR_TARGET): Check for the presence of an
in-tree xg++ executable after checking for the presence of an
in-tree g++ executable.
* Makefile.in: Regenerate.

ld/ChangeLog
ld/Makefile.am
ld/Makefile.in

index dbaf837a7b160ac1e99120ec3138fc84e95d9019..badac3733eee3d195fc11e88e08026bbf280bed0 100644 (file)
@@ -1,3 +1,10 @@
+2016-02-18  Nick Clifton  <nickc@redhat.com>
+
+       * Makefile.am (CXX_FOR_TARGET): Check for the presence of an
+       in-tree xg++ executable after checking for the presence of an
+       in-tree g++ executable.
+       * Makefile.in: Regenerate.
+
 2016-02-17  H.J. Lu  <hongjiu.lu@intel.com>
 
        * testsuite/ld-ifunc/ifunc-1-local-x86.d: Updated.
index 8bfd318ec789f8ef9335fd4c34212a996ece03b3..818af5aa5c37fc516b396b2e557dbd0e3d24dbb4 100644 (file)
@@ -122,6 +122,12 @@ CXX_FOR_TARGET = ` \
     else \
       echo $$r/../gcc/g++ -B$$r/../gcc/; \
     fi; \
+  elif [ -f $$r/../gcc/xg++ ] ; then \
+    if [ -f $$r/../newlib/Makefile ] ; then \
+      echo $$r/../gcc/xg++ -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
+    else \
+      echo $$r/../gcc/xg++ -B$$r/../gcc/; \
+    fi; \
   else \
     if [ "@host@" = "@target@" ] ; then \
       echo $(CXX); \
index 66e9e7ef18d93748ef93b085770b025327687a31..cc13a1e15c7b122655fc9d1d3c80a2a64f7d31bb 100644 (file)
@@ -455,6 +455,12 @@ CXX_FOR_TARGET = ` \
     else \
       echo $$r/../gcc/g++ -B$$r/../gcc/; \
     fi; \
+  elif [ -f $$r/../gcc/xg++ ] ; then \
+    if [ -f $$r/../newlib/Makefile ] ; then \
+      echo $$r/../gcc/xg++ -B$$r/../gcc/ -idirafter $$r/../newlib/targ-include -idirafter $${srcroot}/../newlib/libc/include -nostdinc; \
+    else \
+      echo $$r/../gcc/xg++ -B$$r/../gcc/; \
+    fi; \
   else \
     if [ "@host@" = "@target@" ] ; then \
       echo $(CXX); \