This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Use $(DEFAULT-LDFLAGS-$(@F)) in +link-static-before-libc


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]