git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #66454 from ruuda/libcrypto-noexecstack

libressl: build libcrypto with noexecstack

commit856d10a9b8338f76d4a76e7f026d5327b5cb665d authorMatthew Bauer <mjbauer95@gmail.com> dateWed 21 Aug 2019, 14:11 (7 years ago) parent27d0689fdd78a5
1 file changed+9−1
pkgs/development/libraries/libressl/default.nix+9−1
pkgs/development/libraries/libressl/default.nix+9−1
@@ -13,7 +13,15 @@ let
1313
1414 nativeBuildInputs = [ cmake ];
1515
16− cmakeFlags = [ "-DENABLE_NC=ON" "-DBUILD_SHARED_LIBS=ON" ];
16+ cmakeFlags = [
17+ "-DENABLE_NC=ON"
18+ "-DBUILD_SHARED_LIBS=ON"
19+ # Ensure that the output libraries do not require an executable stack.
20+ # Without this define, assembly files in libcrypto do not include a
21+ # .note.GNU-stack section, and if that section is missing from any object,
22+ # the linker will make the stack executable.
23+ "-DCMAKE_C_FLAGS=-DHAVE_GNU_STACK"
24+ ];
1725
1826 # The autoconf build is broken as of 2.9.1, resulting in the following error:
1927 # libressl-2.9.1/tls/.libs/libtls.a', needed by 'handshake_table'.