_7zz: cross-compilation fixes

This commit is contained in:
Thiago Kenji Okada 2022-04-18 22:55:43 +01:00
parent ce602086b5
commit b2d35019c0

View file

@ -50,6 +50,10 @@ stdenv.mkDerivation rec {
sourceRoot = "CPP/7zip/Bundles/Alone2"; sourceRoot = "CPP/7zip/Bundles/Alone2";
makeFlags = makeFlags =
[
"CC=${stdenv.cc.targetPrefix}cc"
"CXX=${stdenv.cc.targetPrefix}c++"
] ++
lib.optionals useUasm [ "MY_ASM=uasm" ] ++ lib.optionals useUasm [ "MY_ASM=uasm" ] ++
# it's the compression code with the restriction, see DOC/License.txt # it's the compression code with the restriction, see DOC/License.txt
lib.optionals (!enableUnfree) [ "DISABLE_RAR_COMPRESS=true" ]; lib.optionals (!enableUnfree) [ "DISABLE_RAR_COMPRESS=true" ];