diff options
author | Ivan Babrou <github@ivan.computer> | 2021-02-28 16:02:03 -0800 |
---|---|---|
committer | Ivan Babrou <github@ivan.computer> | 2021-03-01 08:20:32 -0800 |
commit | 2f00f46269b4852212689f1a2b0b8481bd7faeb6 (patch) | |
tree | d6be8830cd0b3dc14fa5a8e63d2465f4c6cf5fad /pkgs/development/libraries/crypto++ | |
parent | 01f31b5dc53104fb9feee6ef79e51ba4ed865555 (diff) | |
download | nixpkgs-2f00f46269b4852212689f1a2b0b8481bd7faeb6.tar nixpkgs-2f00f46269b4852212689f1a2b0b8481bd7faeb6.tar.gz nixpkgs-2f00f46269b4852212689f1a2b0b8481bd7faeb6.tar.bz2 nixpkgs-2f00f46269b4852212689f1a2b0b8481bd7faeb6.tar.lz nixpkgs-2f00f46269b4852212689f1a2b0b8481bd7faeb6.tar.xz nixpkgs-2f00f46269b4852212689f1a2b0b8481bd7faeb6.tar.zst nixpkgs-2f00f46269b4852212689f1a2b0b8481bd7faeb6.zip |
cryptopp: run configure.sh before make
This prevents failure on `aarch64-darwin`.
Diffstat (limited to 'pkgs/development/libraries/crypto++')
-rw-r--r-- | pkgs/development/libraries/crypto++/default.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/development/libraries/crypto++/default.nix b/pkgs/development/libraries/crypto++/default.nix index 0402af92b3b..6c4a3bfc084 100644 --- a/pkgs/development/libraries/crypto++/default.nix +++ b/pkgs/development/libraries/crypto++/default.nix @@ -21,6 +21,14 @@ stdenv.mkDerivation rec { substituteInPlace GNUmakefile \ --replace "AR = libtool" "AR = ar" \ --replace "ARFLAGS = -static -o" "ARFLAGS = -cru" + + # See https://github.com/weidai11/cryptopp/issues/1011 + substituteInPlace GNUmakefile \ + --replace "ZOPT = -O0" "ZOPT =" + ''; + + preConfigure = '' + sh TestScripts/configure.sh ''; makeFlags = [ "PREFIX=${placeholder "out"}" ]; |