X-Git-Url: https://git.saurik.com/ldid.git/blobdiff_plain/a5b37447b03462ef06a63c644932c16ba864da0f..4f4aa9c37a0c26908cafbc5ef58c94814d153415:/make.sh diff --git a/make.sh b/make.sh index 6712209..0b54116 100755 --- a/make.sh +++ b/make.sh @@ -9,4 +9,11 @@ if [[ -e $sdk ]]; then flags+=(-mmacosx-version-min=10.4 -isysroot "$sdk") fi -g++ -arch ppc -arch i386 -arch x86_64 "${flags[@]}" -o ldid ldid.cpp -I. -x c lookup2.c sha1.c +for arch in i386 x86_64 ppc armv6; do + if g++ -arch "${arch}" --version &>/dev/null; then + flags+=(-arch "${arch}") + fi +done + +set -x +g++ "${flags[@]}" -o ldid ldid.cpp -I. -x c lookup2.c sha1.c