libressl: do not set noexecstack on Darwin at all
It is not needed on Darwin. [1] Thanks Matthew for explaining this. [1]: https://github.com/NixOS/nixpkgs/pull/66454#issuecomment-520970986
This commit is contained in:
parent
b3c613b9aa
commit
c02b4a1cc8
@ -25,9 +25,11 @@ let
|
|||||||
|
|
||||||
# Ensure that the output libraries do not require an executable stack.
|
# Ensure that the output libraries do not require an executable stack.
|
||||||
# Without this, libcrypto would be built with the executable stack flag set.
|
# Without this, libcrypto would be built with the executable stack flag set.
|
||||||
# For Clang, the flag is '--noexecstack', for GCC it is '-z noexecstack'.
|
# For GCC the flag is '-z noexecstack'. Clang, which is used on Darwin,
|
||||||
|
# expects '--noexecstack'. Execstack is an ELF thing, so it is not needed
|
||||||
|
# on Darwin.
|
||||||
NIX_LDFLAGS = if stdenv.isDarwin
|
NIX_LDFLAGS = if stdenv.isDarwin
|
||||||
then ["--noexecstack"]
|
then []
|
||||||
else ["-z" "noexecstack"];
|
else ["-z" "noexecstack"];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user