fpc: disable PIE hardening

Fails with the usual error:

ld: fpmake.o: relocation R_X86_64_32S against `.bss.n_u_$p$fpmake_$$_p' can not be used when making a PIE object; recompile with -fPIE
ld: failed to set dynamic section sizes: bad value

The build system is hard to decipher, so just disable PIE for now.
This commit is contained in:
FliegendeWurst
2025-03-30 00:20:26 +01:00
parent 4534205b61
commit be528426dd
@@ -77,6 +77,9 @@ stdenv.mkDerivation rec {
"FPC=${startFPC}/bin/fpc"
];
# disabled by default in fpcsrc/compiler/llvm/agllvm.pas
hardeningDisable = [ "pie" ];
installFlags = [ "INSTALL_PREFIX=\${out}" ];
postInstall = ''