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:
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user