X-Git-Url: https://git.saurik.com/ldid.git/blobdiff_plain/1d58df4c83bbf5e105c65829ca3ff4d00e9de005..e58574abf6529058ed277b13c8af3bff3c126186:/make.sh diff --git a/make.sh b/make.sh index f1f2a81..0b54116 100755 --- a/make.sh +++ b/make.sh @@ -1,6 +1,6 @@ #!/bin/bash -set -e -x +set -e flags=() @@ -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