PATCH RFC: Recognize gold in libstdc++ configure script

Ian Lance Taylor iant@google.com
Fri Mar 28 04:12:00 GMT 2008


The libstdc++ configure script does some direct comparisons of the
linker version number.  These comparisons do not work for gold, a new
ELF linker.

It would not be appropriate for gold to simply pretend that it is GNU
ld.  Not only is that not correct, it would actually give the
incorrect result.  The libstdc++ configure script uses a version
number test to check whether the linker supports --gc-sections; gold
does not.

This patch fixes the problems for me.  Does this seem reasonable, or
would people prefer a different approach?

Ian


2008-03-27  Ian Lance Taylor  <iant@google.com>

	* acinclude.m4 (GLIBCXX_CHECK_LINKER_FEATURES): Set
	glibcxx_ld_is_gold.  Check for gold in --gc-sections test.
	(GLIBCXX_ENABLE_SYMVERS): Check for gold.
	* aclocal.m4, configure: Rebuild.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-patch
Size: 2610 bytes
Desc: Recognize gold
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20080328/319ed804/attachment.bin>


More information about the Libstdc++ mailing list