Merge pull request #114707 from bobrik/ivan/cryptopp-configure

cryptopp: run configure.sh before make
This commit is contained in:
Sandro 2021-03-01 17:59:33 +01:00 committed by GitHub
commit a2058915fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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