]> git.cameronkatri.com Git - ldid.git/blob - make.sh
Commit old logic to force codesign's install_name.
[ldid.git] / make.sh
1 #!/bin/bash
2
3 set -e
4
5 if which xcrun &>/dev/null; then
6 flags=(xcrun -sdk macosx g++)
7 flags+=(-mmacosx-version-min=10.4)
8
9 for arch in i386 x86_64; do
10 flags+=(-arch "${arch}")
11 done
12 else
13 flags=(g++)
14 fi
15
16 set -x
17 "${flags[@]}" -o ldid ldid.cpp -I. -x c lookup2.c -x c sha1.c