]> git.saurik.com Git - ldid.git/commitdiff
Support compilation on Mac OS X 10.4.
authorJay Freeman (saurik) <saurik@saurik.com>
Thu, 13 Jan 2011 13:23:33 +0000 (05:23 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 13 Jan 2011 13:23:33 +0000 (05:23 -0800)
make.sh

diff --git a/make.sh b/make.sh
index 392837366194650c80cbf95fea023a65316c82f7..c8f467269699bbba5aa0df5dafcb4bb0d81018aa 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -1,2 +1,10 @@
 #!/bin/bash
-g++ -arch ppc -arch i386 -arch x86_64 -o ldid ldid.cpp -I. -x c lookup2.c sha1.c
+
+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