gold patch committed: Check decls in C, not C++

Ian Lance Taylor iant@google.com
Tue Jun 23 15:56:00 GMT 2009
For AC_CHECK_DECLS autoconf generates tests which simply assign the
function pointer to a variable.  When compiling with C++, this fails if
the function is overloaded.  The current version of glibc does in fact
overload some functions when compiling with C++.  This causes confusion
over whether basename is defined.

I committed this patch to gold to try to avoid this problem by running
AC_CHECK_DECLS using C rather than C++.

Ian


2009-06-23  Ian Lance Taylor  <iant@google.com>

	* configure.ac: Call AC_CHECK_DECLS using C, not C++.
	* configure: Rebuild.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-patch
Size: 1137 bytes
Desc: Check decls in C
URL: <https://sourceware.org/pipermail/binutils/attachments/20090623/8cad5b79/attachment.bin>


More information about the Binutils mailing list