cryptopp: be graceful when removing static lib, fixing cross compilation

This commit is contained in:
Nick Cao
2022-01-09 09:11:10 +08:00
parent 8aeafc25c9
commit 52f2f6cf4b
@@ -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" ];