X-Git-Url: https://git.saurik.com/ldid.git/blobdiff_plain/6212944b8293bb035b4a3fd4bdfd14abdd545a5a..80fb9fadc672b27f7abd40452663f7c4c74a86d9:/make.sh diff --git a/make.sh b/make.sh index 0be7611..f1f2a81 100755 --- a/make.sh +++ b/make.sh @@ -1,2 +1,12 @@ #!/bin/bash -g++ -arch i386 -arch x86_64 -o ldid ldid.cpp -I. -x c lookup2.c sha1.c + +set -e -x + +flags=() + +sdk=/Developer/SDKs/MacOSX10.4u.sdk +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