Commit b2b25aeb authored by Felix Paul Kühne's avatar Felix Paul Kühne

extras/ios: fix build script

(cherry picked from commit d32f040df7c85f9331cf5f5aa6438a84e2ad8360)
parent e7d8819b
...@@ -5,7 +5,7 @@ PLATFORM=OS ...@@ -5,7 +5,7 @@ PLATFORM=OS
VERBOSE=no VERBOSE=no
SDK_VERSION=7.0 SDK_VERSION=7.0
SDK_MIN=5.1 SDK_MIN=5.1
64BIT_SDK_MIN=7.0 SIXTYFOURBIT_SDK_MIN=7.0
ARCH=armv7 ARCH=armv7
usage() usage()
...@@ -132,17 +132,19 @@ export PLATFORM=$PLATFORM ...@@ -132,17 +132,19 @@ export PLATFORM=$PLATFORM
export SDK_VERSION=$SDK_VERSION export SDK_VERSION=$SDK_VERSION
export CFLAGS="-isysroot ${SDKROOT} -arch ${ARCH} ${OPTIM}" export CFLAGS="-isysroot ${SDKROOT} -arch ${ARCH} ${OPTIM}"
if [ "$PLATFORM" = "OS" ]; then if [ "$PLATFORM" = "OS" ]; then
if [ "$ARCH" != "arm64" ]; then if [ "$ARCH" != "arm64" ]; then
export CFLAGS="${CFLAGS} -mcpu=cortex-a8 -miphoneos-version-min=${SDK_MIN}" export CFLAGS="${CFLAGS} -mcpu=cortex-a8 -miphoneos-version-min=${SDK_MIN}"
else else
export CFLAGS="${CFLAGS} -miphoneos-version-min=${64BIT_SDK_MIN}" export CFLAGS="${CFLAGS} -miphoneos-version-min=${SIXTYFOURBIT_SDK_MIN}"
fi fi
else else
if [ "$ARCH" != "x86_64" ]; then if [ "$ARCH" != "x86_64" ]; then
export CFLAGS="${CFLAGS} -miphoneos-version-min=${SDK_MIN}" export CFLAGS="${CFLAGS} -miphoneos-version-min=${SDK_MIN}"
else else
export CFLAGS="${CFLAGS} -miphoneos-version-min=${64BIT_SDK_MIN}" export CFLAGS="${CFLAGS} -miphoneos-version-min=${SIXTYFOURBIT_SDK_MIN}"
fi
fi fi
export CXXFLAGS="${CFLAGS} -stdlib=libstdc++" export CXXFLAGS="${CFLAGS} -stdlib=libstdc++"
...@@ -169,9 +171,9 @@ if [ "$ARCH" != "arm64" ]; then ...@@ -169,9 +171,9 @@ if [ "$ARCH" != "arm64" ]; then
EXTRA_LDFLAGS+=" -miphoneos-version-min=${SDK_MIN}" EXTRA_LDFLAGS+=" -miphoneos-version-min=${SDK_MIN}"
export LDFLAGS="${LDFLAGS} -miphoneos-version-min=${SDK_MIN}" export LDFLAGS="${LDFLAGS} -miphoneos-version-min=${SDK_MIN}"
else else
EXTRA_CFLAGS+=" -miphoneos-version-min=${64BIT_SDK_MIN}" EXTRA_CFLAGS+=" -miphoneos-version-min=${SIXTYFOURBIT_SDK_MIN}"
EXTRA_LDFLAGS+=" -miphoneos-version-min=${64BIT_SDK_MIN}" EXTRA_LDFLAGS+=" -miphoneos-version-min=${SIXTYFOURBIT_SDK_MIN}"
export LDFLAGS="${LDFLAGS} -miphoneos-version-min=${64BIT_SDK_MIN}" export LDFLAGS="${LDFLAGS} -miphoneos-version-min=${SIXTYFOURBIT_SDK_MIN}"
fi fi
EXTRA_LDFLAGS="-arch ${ARCH}" EXTRA_LDFLAGS="-arch ${ARCH}"
else else
...@@ -182,9 +184,9 @@ if [ "$ARCH" != "x86_64" ]; then ...@@ -182,9 +184,9 @@ if [ "$ARCH" != "x86_64" ]; then
EXTRA_LDFLAGS+=" -miphoneos-version-min=${SDK_MIN}" EXTRA_LDFLAGS+=" -miphoneos-version-min=${SDK_MIN}"
export LDFLAGS="${LDFLAGS} -miphoneos-version-min=${SDK_MIN}" export LDFLAGS="${LDFLAGS} -miphoneos-version-min=${SDK_MIN}"
else else
EXTRA_CFLAGS+=" -miphoneos-version-min=${64BIT_SDK_MIN}" EXTRA_CFLAGS+=" -miphoneos-version-min=${SIXTYFOURBIT_SDK_MIN}"
EXTRA_LDFLAGS+=" -miphoneos-version-min=${64BIT_SDK_MIN}" EXTRA_LDFLAGS+=" -miphoneos-version-min=${SIXTYFOURBIT_SDK_MIN}"
export LDFLAGS="${LDFLAGS} -miphoneos-version-min=${64BIT_SDK_MIN}" export LDFLAGS="${LDFLAGS} -miphoneos-version-min=${SIXTYFOURBIT_SDK_MIN}"
fi fi
fi fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment