redhat-rpm-config/redhat-hardened-ld
Panu Matilainen b1a45b244e -pie is incompatible with static linkage (#1343892, #1287743)
The hardened gcc specs do not handle static linkage, so building
with -static has been broken since commit
d9235d2d90. Adjust the -ld spec
file to avoid -pie when static linkage is used, as suggested
by Florian Weimer.
2016-11-08 15:21:31 +02:00

6 lines
64 B
Plaintext

*self_spec:
+ %{!static:%{!shared:%{!r:-pie}}}
*link:
+ -z now