Skip to content

Commit 20957f9

Browse files
authored
Set PIC for C as well.
1 parent a24b137 commit 20957f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/ghc/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ stdenv.mkDerivation (rec {
462462
checkTarget = "test";
463463

464464
hardeningDisable = [ "format" ]
465-
++ lib.optional stdenv.targetPlatform.isAarch32 "pic"
465+
++ lib.optional (stdenv.targetPlatform.isAarch32 || enableRelocatedStaticLibs) "pic"
466466
++ lib.optional stdenv.targetPlatform.isMusl "pie";
467467

468468
postInstall = lib.optionalString (enableNUMA && targetPlatform.isLinux) ''

0 commit comments

Comments
 (0)