[vlc-commits] ios: unbreak freetype contrib compilation with Xcode 5 and simplify the FLAG handling quite a bit
Felix Paul Kühne
git at videolan.org
Tue Oct 8 18:56:12 CEST 2013
vlc/vlc-2.1 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Tue Oct 8 18:55:44 2013 +0200| [2791a97f297abf20682847c80890663478f3d5a8] | committer: Felix Paul Kühne
ios: unbreak freetype contrib compilation with Xcode 5 and simplify the FLAG handling quite a bit
Manual backport of 0b0545eb3
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=2791a97f297abf20682847c80890663478f3d5a8
---
contrib/bootstrap | 19 -------------------
contrib/src/main.mak | 4 ++--
extras/package/ios/build.sh | 7 +------
3 files changed, 3 insertions(+), 27 deletions(-)
diff --git a/contrib/bootstrap b/contrib/bootstrap
index 6bf7bd5..e5c7022 100755
--- a/contrib/bootstrap
+++ b/contrib/bootstrap
@@ -172,24 +172,6 @@ check_macosx_sdk()
add_make "OSX_VERSION ?= ${OSX_VERSION}"
}
-check_ios_sdk()
-{
- if test -z "$SDKROOT"
- then
- SDKROOT=`xcode-select -print-path`/Platforms/iPhone${PLATFORM}.platform/Developer/SDKs/iPhone${PLATFORM}${SDK_VERSION}.sdk
- echo "SDKROOT not specified, assuming $SDKROOT"
- else
- SDKROOT="$SDKROOT"
- fi
-
- if [ ! -d "${SDKROOT}" ]
- then
- echo "*** ${SDKROOT} does not exist, please install required SDK, or set SDKROOT manually. ***"
- exit 1
- fi
- add_make "SDKROOT=${SDKROOT}"
-}
-
check_android_sdk()
{
[ -z "${ANDROID_NDK}" ] && echo "You must set ANDROID_NDK environment variable" && exit 1
@@ -218,7 +200,6 @@ case "${OS}" in
check_macosx_sdk
add_make_enabled "HAVE_MACOSX" "HAVE_DARWIN_OS" "HAVE_BSD"
else
- check_ios_sdk
add_make_enabled "HAVE_IOS" "HAVE_DARWIN_OS" "HAVE_BSD" "HAVE_NEON" "HAVE_ARMV7A"
fi
;;
diff --git a/contrib/src/main.mak b/contrib/src/main.mak
index 66cc31e..2b6bb9d 100644
--- a/contrib/src/main.mak
+++ b/contrib/src/main.mak
@@ -138,8 +138,8 @@ AR=xcrun ar
LD=xcrun ld
STRIP=xcrun strip
RANLIB=xcrun ranlib
-EXTRA_CFLAGS += -isysroot $(SDKROOT) -miphoneos-version-min=5.0
-EXTRA_LDFLAGS += -Wl,-syslibroot,$(SDKROOT) -isysroot $(SDKROOT) -miphoneos-version-min=5.0
+EXTRA_CFLAGS += $(CFLAGS)
+EXTRA_LDFLAGS += $(LDFLAGS)
endif
ifdef HAVE_WIN32
diff --git a/extras/package/ios/build.sh b/extras/package/ios/build.sh
index 175eb60..cae31c9 100755
--- a/extras/package/ios/build.sh
+++ b/extras/package/ios/build.sh
@@ -132,7 +132,6 @@ export LD="xcrun ld"
export STRIP="xcrun strip"
-export SDKROOT
if [ "$PLATFORM" = "OS" ]; then
export CFLAGS="-isysroot ${SDKROOT} -arch ${ARCH} -mcpu=cortex-a8 -miphoneos-version-min=${SDK_MIN} ${OPTIM}"
else
@@ -152,11 +151,7 @@ if [ "$PLATFORM" = "Simulator" ]; then
export OBJCFLAGS="-fobjc-abi-version=2 -fobjc-legacy-dispatch ${OBJCFLAGS}"
fi
-if [ "$PLATFORM" = "OS" ]; then
- export LDFLAGS="-L${SDKROOT}/usr/lib -arch ${ARCH} -isysroot ${SDKROOT} -miphoneos-version-min=${SDK_MIN}"
-else
- export LDFLAGS="-syslibroot=${SDKROOT}/ -arch ${ARCH} -miphoneos-version-min=${SDK_MIN}"
-fi
+export LDFLAGS="-L${SDKROOT}/usr/lib -arch ${ARCH} -isysroot ${SDKROOT} -miphoneos-version-min=${SDK_MIN}"
if [ "$PLATFORM" = "OS" ]; then
EXTRA_CFLAGS="-arch ${ARCH} -mcpu=cortex-a8"
More information about the vlc-commits
mailing list