12a7306 rpm: Use hardened flags for RPM build

Authored and Committed by jhrozek 10 years ago
    rpm: Use hardened flags for RPM build
    
    https://fedorahosted.org/sssd/ticket/1797
    
    This patch adds the _hardened_build macro on platforms where it is
    defined by the RPM. The macro amounts to compiling with cc
    --spec=/usr/lib/rpm/redhat/redhat-hardened-cc1 and then linking with ld
    --spec=/usr/lib/rpm/redhat/redhat-hardened-ld.
    
    On Fedora 19, the gcc spec files contain -z now and fPIC or fPIE.
    
        
file modified
+4 -0