diff options
author | Anthony Blake <anthonix@me.com> | 2012-10-18 17:21:38 +1300 |
---|---|---|
committer | Anthony Blake <anthonix@me.com> | 2012-10-18 17:21:38 +1300 |
commit | 5a7370c8abc112ec3e6ea3664853ff40ccfd5b73 (patch) | |
tree | 5ef15c843f34094ecef9747e7ac651b57bc9b98d /build_iphone.sh | |
parent | 70ddb73d91863d7f2f088665e7cc7f9d256308b8 (diff) | |
download | ffts-5a7370c8abc112ec3e6ea3664853ff40ccfd5b73.zip ffts-5a7370c8abc112ec3e6ea3664853ff40ccfd5b73.tar.gz |
ARM portability changes (underscore function prefix on iOS)
Diffstat (limited to 'build_iphone.sh')
-rwxr-xr-x | build_iphone.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/build_iphone.sh b/build_iphone.sh new file mode 100755 index 0000000..70d7845 --- /dev/null +++ b/build_iphone.sh @@ -0,0 +1,18 @@ +#/bin/sh + +INSTALL_DIR="`pwd`/build" + +export SDKVER="6.0" +export DEVROOT="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer" +export SDKROOT="$DEVROOT/SDKs/iPhoneOS$SDKVER.sdk" +export CFLAGS="-O3 -Wreturn-type -Wparentheses -Wswitch -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-shorten-64-to-32 -Wno-trigraphs -fpascal-strings -miphoneos-version-min=5.0 -mcpu=cortex-a9 -arch armv7 -mfpu=neon -pipe -isysroot $SDKROOT -isystem $SDKROOT/usr/include -isystem $DEVROOT/usr/include -std=c99 -mno-thumb -no-integrated-as" +export AR="$DEVROOT/usr/bin/ar" +export CC="clang" + + +mkdir -p $INSTALL_DIR +./configure --enable-neon --build=i386-apple-darwin10.8.0 --host=arm-eabi --prefix=$INSTALL_DIR + +make +make install + |