relro and precompiled headers

Ralf Corsepius rc040203 at freenet.de
Thu Jul 7 16:13:18 UTC 2011


On 07/07/2011 05:43 PM, Dan Horák wrote:
> Jakub Jelinek píše v Čt 07. 07. 2011 v 16:49 +0200:
>> On Fri, Jul 01, 2011 at 02:15:08PM +0200, Dan Horák wrote:
>>> when I'm building Code::Block in rawhide I'm getting into troubles with
>>> the "relro" feature when combined with pre-compiled headers.
>>>
>>> with default flags I get:
>>
>> Putting -Wl,-z,relro into CFLAGS or CXXFLAGS is a mistake, -Wl,-z,relro
>> should go into LDFLAGS instead.
>
> Thanks for the info to both of you.
>
> I have reassigned https://bugzilla.redhat.com/show_bug.cgi?id=718719 to
> redhat-rpm-config. So a new variable will be needed for distr-wide
> LDFLAGS, the %configure macro updated and maybe other stuff will have to
> be touched too.

Wouldn't it be better to patch GCC (GCC's spec) instead?

Ralf


More information about the devel mailing list