Created attachment 517233 [details] rpm-4.9.1.1-ld-flags.patch Description of problem: For background: https://fedorahosted.org/fesco/ticket/563 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. https://admin.fedoraproject.org/updates/rpm-4.9.1-3.fc16
Package rpm-4.9.1-3.fc16: * 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: https://admin.fedoraproject.org/updates/rpm-4.9.1-3.fc16 then log in and leave karma (feedback).
rpm-4.9.1.1-2.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/rpm-4.9.1.1-2.fc16
rpm-4.9.1.1-2.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report.