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
wip/yesman
Ruud van Asseldonk 5 years ago
parent b3c613b9aa
commit c02b4a1cc8
  1. 6
      pkgs/development/libraries/libressl/default.nix

@ -25,9 +25,11 @@ let
# Ensure that the output libraries do not require an executable stack.
# 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
then ["--noexecstack"]
then []
else ["-z" "noexecstack"];
enableParallelBuilding = true;

Loading…
Cancel
Save