summary refs log tree commit diff
path: root/pkgs/development/libraries/crypto++
diff options
context:
space:
mode:
authorIvan Babrou <github@ivan.computer>2021-02-28 16:02:03 -0800
committerIvan Babrou <github@ivan.computer>2021-03-01 08:20:32 -0800
commit2f00f46269b4852212689f1a2b0b8481bd7faeb6 (patch)
treed6be8830cd0b3dc14fa5a8e63d2465f4c6cf5fad /pkgs/development/libraries/crypto++
parent01f31b5dc53104fb9feee6ef79e51ba4ed865555 (diff)
downloadnixpkgs-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.nix8
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"}" ];