add cross compilation for ubuntu arm64

Signed-off-by: Hollow Man <hollowman@opensuse.org>
This commit is contained in:
Hollow Man
2023-03-14 21:18:55 +02:00
parent 0c77d89bfc
commit 3238555df3
4 changed files with 35 additions and 10 deletions

View File

@@ -13,7 +13,9 @@ libgit2:
# build and install libgit2 for macOS m1
libgit2arm64:
git submodule update --init --recursive
sed -i '' 's/cmake -D/cmake -DCMAKE_OSX_ARCHITECTURES="arm64" -D/' git2go/script/build-libgit2.sh
if [ "$(shell uname -s)" = "Darwin" ]; then \
sed -i '' 's/cmake -D/cmake -DCMAKE_OSX_ARCHITECTURES="arm64" -D/' git2go/script/build-libgit2.sh; \
fi
cd git2go; make install-static
# go build tags