Merge pull request #154082 from NickCao/cryptopp
cryptopp: be graceful when removing static lib, fixing cross compilation
commita2a0d71f35bae0e8675d602115cdcaeb9ea621cd
authorRenaud <c0bw3b@users.noreply.github.com>
dateSun 9 Jan 2022, 10:41 (5 years ago)
parentf26a81152f2f6c
pkgs/development/libraries/crypto++/default.nix+1−1
@@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
3434 doCheck = true;
3535
3636 # always built for checks but install static lib only when necessary
37− preInstall = lib.optionalString (!enableStatic) "rm libcryptopp.a";
37+ preInstall = lib.optionalString (!enableStatic) "rm -f libcryptopp.a";
3838
3939 installTargets = [ "install-lib" ];
4040 installFlags = [ "LDCONF=true" ];