Remove --as-needed configure test

Mike Frysinger vapier@gentoo.org
Wed Apr 25 15:53:00 GMT 2012


On Wednesday 25 April 2012 10:18:07 Joseph S. Myers wrote:
> As discussed lately, we'd like to avoid the glibc build depending on
> libgcc_s (or more generally on any bit of libgcc that requires
> anything from glibc to be installed in order to build) in order to
> make bootstraps easier.
> 
> One dependency is that the configure test for ld --as-needed uses
> -lgcc_s, and there isn't really anything else it could use; testing
> --as-needed requires a shared library to link with using that option.
> But --as-needed was added to ld in 2004, long before any version now
> supported for building glibc, so this configure test is unnecessary
> (and we don't need to use a more complicated process involving
> building a shared library just to link with it with --as-needed).
> 
> I propose this patch to remove this configure test and unconditionally
> assume that --as-needed support is present.  Tested x86_64.

SGTM
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20120425/a364079f/attachment.sig>


More information about the Libc-alpha mailing list