diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2019-09-19 12:37:34 -0400 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2019-09-19 12:38:08 -0400 |
commit | 37744d2c3638f785813726c0c433f9a6260520d4 (patch) | |
tree | ad1f038fa492f9f04c6c3cd00566983823959f66 /pkgs/development/libraries/libressl | |
parent | 8f01848075d4017aecdd793f47b979310b934088 (diff) | |
download | nixpkgs-37744d2c3638f785813726c0c433f9a6260520d4.tar nixpkgs-37744d2c3638f785813726c0c433f9a6260520d4.tar.gz nixpkgs-37744d2c3638f785813726c0c433f9a6260520d4.tar.bz2 nixpkgs-37744d2c3638f785813726c0c433f9a6260520d4.tar.lz nixpkgs-37744d2c3638f785813726c0c433f9a6260520d4.tar.xz nixpkgs-37744d2c3638f785813726c0c433f9a6260520d4.tar.zst nixpkgs-37744d2c3638f785813726c0c433f9a6260520d4.zip |
libressl: add static override
Diffstat (limited to 'pkgs/development/libraries/libressl')
-rw-r--r-- | pkgs/development/libraries/libressl/default.nix | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pkgs/development/libraries/libressl/default.nix b/pkgs/development/libraries/libressl/default.nix index 41f24a36eac..22696f230e8 100644 --- a/pkgs/development/libraries/libressl/default.nix +++ b/pkgs/development/libraries/libressl/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, lib, cmake, cacert, fetchpatch }: +{ stdenv, fetchurl, lib, cmake, cacert, fetchpatch, buildShared ? true }: let @@ -15,13 +15,12 @@ let cmakeFlags = [ "-DENABLE_NC=ON" - "-DBUILD_SHARED_LIBS=ON" # Ensure that the output libraries do not require an executable stack. # Without this define, assembly files in libcrypto do not include a # .note.GNU-stack section, and if that section is missing from any object, # the linker will make the stack executable. "-DCMAKE_C_FLAGS=-DHAVE_GNU_STACK" - ]; + ] ++ lib.optional buildShared "-DBUILD_SHARED_LIBS=ON"; # The autoconf build is broken as of 2.9.1, resulting in the following error: # libressl-2.9.1/tls/.libs/libtls.a', needed by 'handshake_table'. |