[PATCH] Use $(DEFAULT-LDFLAGS-$(@F)) in +link-static-before-libc
H.J. Lu
hjl.tools@gmail.com
Thu Oct 5 00:13:00 GMT 2017
On 10/4/17, H.J. Lu <hjl.tools@gmail.com> wrote:
> 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.
>
I will check it in shortly.
--
H.J.
More information about the Libc-alpha
mailing list