Skip to content

Commit

Permalink
Support compilation on Mac OS X 10.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
saurik committed Jan 13, 2011
1 parent 35cf35f commit 6579543
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion make.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6579543

Please sign in to comment.