aboutsummaryrefslogtreecommitdiff
path: root/ld/Makefile.am
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2016-02-18 10:10:36 +0000
committerNick Clifton <nickc@redhat.com>2016-02-18 10:10:36 +0000
commit06ea285dcbfb67189e46bee7f4f7c9b4140fc681 (patch)
tree5a9c1df22af6f65bfdd0a5520243ad83a8d983fd /ld/Makefile.am
parent9136aa49abcb3f23171e01ebd16ee03cc1032943 (diff)
downloadbinutils-06ea285dcbfb67189e46bee7f4f7c9b4140fc681.zip
binutils-06ea285dcbfb67189e46bee7f4f7c9b4140fc681.tar.gz
binutils-06ea285dcbfb67189e46bee7f4f7c9b4140fc681.tar.bz2
Fix computation of CXX_FOR_TARGET so that it can detect an in-tree xg++ executable.
* 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.
Diffstat (limited to 'ld/Makefile.am')
-rw-r--r--ld/Makefile.am6
1 files changed, 6 insertions, 0 deletions
diff --git a/ld/Makefile.am b/ld/Makefile.am
index 8bfd318..818af5a 100644
--- a/ld/Makefile.am
+++ b/ld/Makefile.am
@@ -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); \