diff --git a/compiler/ghc/default.nix b/compiler/ghc/default.nix index cc4fdb3b3d..7c2667467f 100644 --- a/compiler/ghc/default.nix +++ b/compiler/ghc/default.nix @@ -494,7 +494,7 @@ stdenv.mkDerivation (rec { checkTarget = "test"; hardeningDisable = [ "format" ] - ++ lib.optional stdenv.targetPlatform.isAarch32 "pic" + ++ lib.optional (stdenv.targetPlatform.isAarch32 || enableRelocatedStaticLibs) "pic" ++ lib.optional stdenv.targetPlatform.isMusl "pie" ++ lib.optional enableDWARF "fortify";