The hardened gcc specs do not handle static linkage, so building with -static has been broken since commit d9235d2d90873ff6207cb26d331e979ae9d651fd. Adjust the -ld spec file to avoid -pie when static linkage is used, as suggested by Florian Weimer.
6 lines
64 B
Plaintext
6 lines
64 B
Plaintext
*self_spec:
|
|
+ %{!static:%{!shared:%{!r:-pie}}}
|
|
|
|
*link:
|
|
+ -z now
|