-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathosx_build.sh
More file actions
25 lines (20 loc) · 808 Bytes
/
osx_build.sh
File metadata and controls
25 lines (20 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#! /bin/sh
# A noddy script to automate production of universal binaries on OS X.
make distclean &>/dev/null
export LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/MacOSX10.3.9.sdk"
export CC="gcc -arch ppc -isysroot /Developer/SDKs/MacOSX10.3.9.sdk"
export CXX="g++ -arch ppc -isysroot /Developer/SDKs/MacOSX10.3.9.sdk"
./configure --with-internal-libs
make || exit
mv onscripter onscripter.ppc
make distclean &>/dev/null
export LDFLAGS="-Wl,-syslibroot,/Developer/SDKs/MacOSX10.4u.sdk"
export CC="gcc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk"
export CXX="g++ -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk"
./configure --with-internal-libs
make || exit
mv onscripter onscripter.intel
lipo -create \
-arch ppc onscripter.ppc \
-arch i386 onscripter.intel \
-output onscripter