Commit be528426 authored by FliegendeWurst's avatar FliegendeWurst
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.
parent 4534205b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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 = ''