Commit 5027938f authored by Felix Paul Kühne's avatar Felix Paul Kühne

extras/ios: fix compilation with latest xcode releases

parent 79df8a65
......@@ -150,12 +150,8 @@ else
export CFLAGS="${CFLAGS} -miphoneos-version-min=${SIXTYFOURBIT_SDK_MIN}"
fi
else
if [ "$ARCH" != "x86_64" ]; then
export CFLAGS="${CFLAGS} -miphoneos-version-min=${SDK_MIN}"
else
export CFLAGS="${CFLAGS} -miphoneos-version-min=${SIXTYFOURBIT_SDK_MIN}"
fi
fi
export CXXFLAGS="${CFLAGS} -stdlib=libstdc++"
......@@ -189,16 +185,10 @@ fi
else
EXTRA_CFLAGS="-arch ${ARCH}"
EXTRA_LDFLAGS="-arch ${ARCH}"
if [ "$ARCH" != "x86_64" ]; then
EXTRA_CFLAGS+=" -miphoneos-version-min=${SDK_MIN}"
EXTRA_LDFLAGS+=" -miphoneos-version-min=${SDK_MIN}"
export LDFLAGS="${LDFLAGS} -miphoneos-version-min=${SDK_MIN}"
else
EXTRA_CFLAGS+=" -miphoneos-version-min=${SIXTYFOURBIT_SDK_MIN}"
EXTRA_LDFLAGS+=" -miphoneos-version-min=${SIXTYFOURBIT_SDK_MIN}"
export LDFLAGS="${LDFLAGS} -miphoneos-version-min=${SIXTYFOURBIT_SDK_MIN}"
fi
fi
info "LD FLAGS SELECTED = '${LDFLAGS}'"
......
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