cryptopp: run configure.sh before make

This prevents failure on `aarch64-darwin`.
This commit is contained in:
Ivan Babrou 2021-02-28 16:02:03 -08:00
parent 01f31b5dc5
commit 2f00f46269

View File

@ -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"}" ];