Allow LD testsuite to use in-tree g++
Nick Clifton
nickc@redhat.com
Thu Feb 18 10:10:00 GMT 2016
More information about the Binutils mailing list
Thu Feb 18 10:10:00 GMT 2016
- Previous message (by thread): [PATCH] PR ld/19617: Always create dynamic sections for -E/--dynamic-list
- Next message (by thread): New failures for RR 19617 tests
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi Guys, Back in 2012 the gcc project changed the name of the in-tree built C++ compiler from g++ to xg++: https://gcc.gnu.org/ml/gcc-patches/2012-11/msg01349.html Unfortunately the linker testsuite's makefile still looks for an executable called g++ when computing CXX_FOR_TARGET. So I am checking in the patch below to fix this. This may be a waste of time as I am not sure if a 'built but not installed G++ compiler' will actually be able to find the header files and libraries that it needs. But if that turns out to be true then the CXX_FOR_TARGET macro needs to be properly rewritten. Cheers Nick ld/ChangeLog 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. 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); \
- Previous message (by thread): [PATCH] PR ld/19617: Always create dynamic sections for -E/--dynamic-list
- Next message (by thread): New failures for RR 19617 tests
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list