]>
git.saurik.com Git - ldid.git/blob - make.sh
5 sudo xcode
-select --switch /Applications
/Xcode
-5.1
.1.app
7 if which xcrun
&>/dev
/null
; then
8 flags
=(xcrun
-sdk macosx g
++)
9 flags
+=(-mmacosx-version-min=10.4)
11 for arch
in i386 x86_64
; do
12 flags
+=(-arch "${arch}")
21 "${flags[@]}" -c -std=c
++11 -o ldid.o ldid.cpp
22 "${flags[@]}" -o ldid ldid.o
-x c lookup2.c
-x c sha1.c