Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set PIC for C as well. #1979

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Next Next commit
Set PIC for C as well.
  • Loading branch information
angerman authored Jun 12, 2023
commit 20957f9e9442f5e116517f22ebfce5a6ae4fd398
2 changes: 1 addition & 1 deletion compiler/ghc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,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";

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