]> git.saurik.com Git - ldid.git/blobdiff - make.sh
Support read-only mmap when possible.
[ldid.git] / make.sh
diff --git a/make.sh b/make.sh
index 0be76117a6b397210044241e5f9c9a6554de86b6..f1f2a8175c9e9fb1a9194b336347a9746d294b82 100755 (executable)
--- 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