From eea32bc72cbcb3679afa315965ac30757a8c45f1 Mon Sep 17 00:00:00 2001 From: Gabriel Einsdorf Date: Mon, 10 Oct 2022 15:11:17 +0200 Subject: [PATCH] Enable cross-compilation for arm64 --- lz4/cppbuild.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lz4/cppbuild.sh b/lz4/cppbuild.sh index 007743c7ecf..8c4c556b500 100755 --- a/lz4/cppbuild.sh +++ b/lz4/cppbuild.sh @@ -26,6 +26,9 @@ case $PLATFORM in PREFIX=$INSTALL_PATH make install ;; macosx-arm64) + export MOREFLAGS="--target=arm64-apple-darwin21.6.0" + export CC="clang" + export CXX="clang++" make -j $MAKEJ PREFIX=$INSTALL_PATH make install # fix library with correct rpath