Skip to content

Commit be52842

Browse files
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.
1 parent 4534205 commit be52842

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkgs/development/compilers/fpc/default.nix

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ stdenv.mkDerivation rec {
7777
"FPC=${startFPC}/bin/fpc"
7878
];
7979

80+
# disabled by default in fpcsrc/compiler/llvm/agllvm.pas
81+
hardeningDisable = [ "pie" ];
82+
8083
installFlags = [ "INSTALL_PREFIX=\${out}" ];
8184

8285
postInstall = ''

0 commit comments

Comments
 (0)