-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
d9235d2d90873ff6207cb26d331e979ae9d651fd. Adjust the -ld spec
file to avoid -pie when static linkage is used, as suggested
by Florian Weimer.