ghc: disable pie, for now limit to musl since not default yet elsewhere
This commit is contained in:
parent
f910fd4995
commit
6ebb2c385b
@ -232,7 +232,7 @@ stdenv.mkDerivation (rec {
|
|||||||
checkTarget = "test";
|
checkTarget = "test";
|
||||||
doCheck = false; # fails with "testsuite/tests: No such file or directory. Stop."
|
doCheck = false; # fails with "testsuite/tests: No such file or directory. Stop."
|
||||||
|
|
||||||
hardeningDisable = [ "format" ];
|
hardeningDisable = [ "format" ] ++ stdenv.lib.optional stdenv.targetPlatform.isMusl "pie";
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
for bin in "$out"/lib/${name}/bin/*; do
|
for bin in "$out"/lib/${name}/bin/*; do
|
||||||
|
@ -204,7 +204,7 @@ stdenv.mkDerivation (rec {
|
|||||||
|
|
||||||
checkTarget = "test";
|
checkTarget = "test";
|
||||||
|
|
||||||
hardeningDisable = [ "format" ];
|
hardeningDisable = [ "format" ] ++ stdenv.lib.optional stdenv.targetPlatform.isMusl "pie";
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
for bin in "$out"/lib/${name}/bin/*; do
|
for bin in "$out"/lib/${name}/bin/*; do
|
||||||
|
@ -189,7 +189,7 @@ stdenv.mkDerivation (rec {
|
|||||||
|
|
||||||
checkTarget = "test";
|
checkTarget = "test";
|
||||||
|
|
||||||
hardeningDisable = [ "format" ];
|
hardeningDisable = [ "format" ] ++ stdenv.lib.optional stdenv.targetPlatform.isMusl "pie";
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
for bin in "$out"/lib/${name}/bin/*; do
|
for bin in "$out"/lib/${name}/bin/*; do
|
||||||
|
@ -189,7 +189,7 @@ stdenv.mkDerivation (rec {
|
|||||||
|
|
||||||
checkTarget = "test";
|
checkTarget = "test";
|
||||||
|
|
||||||
hardeningDisable = [ "format" ];
|
hardeningDisable = [ "format" ] ++ stdenv.lib.optional stdenv.targetPlatform.isMusl "pie";
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
for bin in "$out"/lib/${name}/bin/*; do
|
for bin in "$out"/lib/${name}/bin/*; do
|
||||||
|
@ -171,7 +171,7 @@ stdenv.mkDerivation (rec {
|
|||||||
|
|
||||||
checkTarget = "test";
|
checkTarget = "test";
|
||||||
|
|
||||||
hardeningDisable = [ "format" ];
|
hardeningDisable = [ "format" ] ++ stdenv.lib.optional stdenv.targetPlatform.isMusl "pie";
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
for bin in "$out"/lib/${name}/bin/*; do
|
for bin in "$out"/lib/${name}/bin/*; do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user