From e5a70bb6fb4002b7003a34be8458759b1c06ea96 Mon Sep 17 00:00:00 2001 From: Frank Mata Date: Thu, 25 Sep 2014 21:57:23 -0700 Subject: [PATCH] Change "-miphoneos-version-min=4.0" to "-miphoneos-version-min=6.0" in generate-ios-source-and-headers.py for libffi-3.0.13 --- tools/build-libffi.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/build-libffi.sh b/tools/build-libffi.sh index 978ea73..dad5199 100755 --- a/tools/build-libffi.sh +++ b/tools/build-libffi.sh @@ -21,6 +21,9 @@ fi pushd $TMPROOT/libffi-$FFI_VERSION try patch -p1 < $KIVYIOSROOT/src/ffi_files/ffi-$FFI_VERSION-sysv.S.patch +# libffi needs to use "-miphoneos-version-min=6.0" for xcode 6+ to compile it correctly +sed -i.bak s/-miphoneos-version-min=4.0/-miphoneos-version-min=6.0/g generate-ios-source-and-headers.py + try xcodebuild -project libffi.xcodeproj -target "libffi iOS" -configuration Release -sdk iphoneos$SDKVER OTHER_CFLAGS="-no-integrated-as" try cp build/Release-iphoneos/libffi.a $BUILDROOT/lib/libffi.a