This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: tst-prelink fails when built with -fPIC
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Aurelien Jarno <aurelien at aurel32 dot net>
- Cc: <libc-alpha at sourceware dot org>
- Date: Fri, 25 Nov 2016 17:20:19 +0000
- Subject: Re: tst-prelink fails when built with -fPIC
- Authentication-results: sourceware.org; auth=none
- References: <20161125102832.gcctvfrpr7yj6i3e@aurel32.net>
On Fri, 25 Nov 2016, Aurelien Jarno wrote:
> Hi all,
>
> Debian builds gcc 6.2 with --enable-default-pie, which correspond to
> always passing -pie -fPIE -fPIC. This causes the tst-prelink to fail on
Why -fPIC? It's documented as -fPIE -pie, *not* -fPIC.
Now, -fPIE ends up with glibc building with -DPIC, and in some cases that
may break things if code isn't ready for PIC building outside shared
libraries. Those cases can be fixed individually.
--
Joseph S. Myers
joseph@codesourcery.com