On Mon, 12 May 2014 18:59:33 +0300 Samuli Suominen <[email protected]> wrote:
> > - $(LIBTOOL) --mode=link $(CC) -o $@ $(OBJECTS)
> > $(VERSION_OBJECTS) $(LDFLAGS) $(EXTRA_LDFLAGS) $(LT_LDFLAGS)
> > + $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
> > $(EXTRA_LDFLAGS) $(LT_LDFLAGS)
>
> You know that adding $(LDFLAGS) so late in the linker line makes whole
> -Wl,--as-needed get ignored? Should almost certainly be $(CC)
> $(LDFLAGS) $(CFLAGS) ...
If someone wants an detailed explanation, see for reference:
https://wiki.gentoo.org/wiki/Project:Quality_Assurance/As-needed#Importance_of_linking_order
If someone wants emerge to bail out when it is wrong, see for reference:
https://wiki.gentoo.org/wiki/Project:Quality_Assurance/As-needed#Forced_--as-needed
IMPORTANT: There is a particular bug with these instructions:
https://bugs.gentoo.org/show_bug.cgi?id=509966
A temporary solution is to remove the last GCC_SPECS="" line.
--
With kind regards,
Tom Wijsman (TomWij)
Gentoo Developer
E-mail address : [email protected]
GPG Public Key : 6D34E57D
GPG Fingerprint : C165 AF18 AB4C 400B C3D2 ABF0 95B2 1FCD 6D34 E57D
signature.asc
Description: PGP signature
