Merge pull request #154082 from NickCao/cryptopp

cryptopp: be graceful when removing static lib, fixing cross compilation
This commit is contained in:
Renaud
2022-01-09 10:41:58 +01:00
committed by GitHub
@@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
doCheck = true;
# always built for checks but install static lib only when necessary
preInstall = lib.optionalString (!enableStatic) "rm libcryptopp.a";
preInstall = lib.optionalString (!enableStatic) "rm -f libcryptopp.a";
installTargets = [ "install-lib" ];
installFlags = [ "LDCONF=true" ];