So everything in Rawhide must be compiled with -fPIC?

Till Maas opensource at till.name
Thu Feb 19 17:00:41 UTC 2015


On Thu, Feb 19, 2015 at 10:42:02AM +0100, Jakub Jelinek wrote:
> On Thu, Feb 19, 2015 at 09:37:16AM +0000, Richard W.M. Jones wrote:
> > The thing is, I'm not adding -specs=/usr/lib/rpm/redhat/redhat-hardened-ld
> > explicitly in the real program.  It's being added to everything by
> > something in RPM.  I'm not exactly sure what, maybe %{configure}?
> > 
> > So I don't know how to control this behaviour in a real autotools-using
> > program.
> 
> I admit I haven't looked at rawhide redhat-rpm-config, perhaps somebody
> broke something, but usually there is:
> %_hardening_cflags      -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
> # we don't escape symbols '~', '"', etc. so be careful when changing this
> %_hardening_ldflags     -specs=/usr/lib/rpm/redhat/redhat-hardened-ld
> 
> #_hardened_build        0

I plan to change this to 1 now in Rawhide for the upcoming Fedora 23
feature:
https://bugzilla.redhat.com/show_bug.cgi?id=1192183

Since I did not get any feedback from the redhat-rpm-config maintainers
on the bug, do you want to comment on the change?

Regards
Till


More information about the devel mailing list