]> git.saurik.com Git - ldid.git/blame - make.sh
Very minor (critical) changes to the build script.
[ldid.git] / make.sh
CommitLineData
6212944b 1#!/bin/bash
6579543e 2
a5b37447 3set -e
1d58df4c 4
6579543e
JF
5flags=()
6
7sdk=/Developer/SDKs/MacOSX10.4u.sdk
8if [[ -e $sdk ]]; then
9 flags+=(-mmacosx-version-min=10.4 -isysroot "$sdk")
10fi
11
604cc486 12for arch in i386 x86_64; do
bf29b0fe
JF
13 if g++ -arch "${arch}" --version &>/dev/null; then
14 flags+=(-arch "${arch}")
15 fi
16done
17
18set -x
19g++ "${flags[@]}" -o ldid ldid.cpp -I. -x c lookup2.c sha1.c