[PATCH] Use $(DEFAULT-LDFLAGS-$(@F)) in +link-static-before-libc
H.J. Lu
hjl.tools@gmail.com
Wed Oct 4 09:01:00 GMT 2017
On 10/4/17, Andreas Schwab <schwab@suse.de> wrote:
> On Okt 03 2017, "H.J. Lu" <hjl.tools@gmail.com> wrote:
>
>> Use $(LDFLAGS-$(@F)) with tst-tls1-static-non-pie may not be sufficient
>> when static PIE is built by default.
>
> Why is that not sufficient?
>
If GCC doesn't support -static-pie, -Wl,-pie -static is used to build static
executables by default. We need to override it by
$(firstword $(DEFAULT-LDFLAGS-$(@F)) $(default-pie-ldflag))
to avoid passing -Wl,-pie -static to GCC.
--
H.J.
More information about the Libc-alpha
mailing list