lzip: Fix cross compilation

This commit is contained in:
Shea Levy 2018-02-25 09:46:49 -05:00
parent e21300a6ae
commit dcab8d611d
No known key found for this signature in database
GPG Key ID: 5C0BD6957D86FE27

View File

@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
sha256 = "1abbch762gv8rjr579q3qyyk6c80plklbv2mw4x0vg71dgsw9bgz";
};
configureFlags = "CPPFLAGS=-DNDEBUG CFLAGS=-O3 CXXFLAGS=-O3";
configureFlags = "CPPFLAGS=-DNDEBUG CFLAGS=-O3 CXXFLAGS=-O3" + stdenv.lib.optionalString stdenv.isCross " CXX=${stdenv.cc.targetPrefix}c++";
setupHook = ./lzip-setup-hook.sh;