Skip to content

Commit

Permalink
ghc: disable pie, for now limit to musl since not default yet elsewhere
Browse files Browse the repository at this point in the history
  • Loading branch information
dtzWill committed Nov 16, 2018
1 parent f910fd4 commit 6ebb2c3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pkgs/development/compilers/ghc/8.2.2.nix
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ stdenv.mkDerivation (rec {
checkTarget = "test";
doCheck = false; # fails with "testsuite/tests: No such file or directory. Stop."

hardeningDisable = [ "format" ];
hardeningDisable = [ "format" ] ++ stdenv.lib.optional stdenv.targetPlatform.isMusl "pie";

postInstall = ''
for bin in "$out"/lib/${name}/bin/*; do
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/compilers/ghc/8.4.4.nix
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ stdenv.mkDerivation (rec {

checkTarget = "test";

hardeningDisable = [ "format" ];
hardeningDisable = [ "format" ] ++ stdenv.lib.optional stdenv.targetPlatform.isMusl "pie";

postInstall = ''
for bin in "$out"/lib/${name}/bin/*; do
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/compilers/ghc/8.6.1.nix
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ stdenv.mkDerivation (rec {

checkTarget = "test";

hardeningDisable = [ "format" ];
hardeningDisable = [ "format" ] ++ stdenv.lib.optional stdenv.targetPlatform.isMusl "pie";

postInstall = ''
for bin in "$out"/lib/${name}/bin/*; do
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/compilers/ghc/8.6.2.nix
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ stdenv.mkDerivation (rec {

checkTarget = "test";

hardeningDisable = [ "format" ];
hardeningDisable = [ "format" ] ++ stdenv.lib.optional stdenv.targetPlatform.isMusl "pie";

postInstall = ''
for bin in "$out"/lib/${name}/bin/*; do
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/compilers/ghc/head.nix
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ stdenv.mkDerivation (rec {

checkTarget = "test";

hardeningDisable = [ "format" ];
hardeningDisable = [ "format" ] ++ stdenv.lib.optional stdenv.targetPlatform.isMusl "pie";

postInstall = ''
for bin in "$out"/lib/${name}/bin/*; do
Expand Down

0 comments on commit 6ebb2c3

Please sign in to comment.