Created attachment 517233 [details]
Description of problem:
The goal is to be able to say %define _hardened_build 1 in one's specfile and have all the necessary gcc and ld flags configured for you in the common cases. This requires passing different arguments to the compile and link phases. rpm has a $RPM_OPT_FLAGS for CFLAGS, but no matching RPM_LD_FLAGS for LDFLAGS.
I tried to find a way to export this from redhat-rpm-config, but it's pretty much not possible without copy-and-pasting the entire ___build_pre section from rpm. Much simpler to just patch rpm's macros file directly, as in the attached patch.
This is a bit of a layering violation since __global_ldflags is defined in redhat-rpm-config, but detangling that mess is for another day.
rpm-4.9.1-3.fc16 has been submitted as an update for Fedora 16.
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing rpm-4.9.1-3.fc16'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
rpm-18.104.22.168-2.fc16 has been submitted as an update for Fedora 16.
rpm-22.214.171.124-2.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.