[vlc-commits] extras/ios: rework LDFLAGS handling and enable vpx for the scary build flavor
Felix Paul Kühne
git at videolan.org
Thu Nov 6 17:13:33 CET 2014
vlc/vlc-2.2 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Tue Nov 4 21:41:00 2014 +0100| [bcea63b6e20eed27329424421fc4e9669270d5e2] | committer: Felix Paul Kühne
extras/ios: rework LDFLAGS handling and enable vpx for the scary build flavor
(cherry picked from commit a9c89123ff7576aa42bcfd5e9792479c307011a4)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=bcea63b6e20eed27329424421fc4e9669270d5e2
---
extras/package/ios/build.sh | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/extras/package/ios/build.sh b/extras/package/ios/build.sh
index 83fa91f..778e28b 100755
--- a/extras/package/ios/build.sh
+++ b/extras/package/ios/build.sh
@@ -176,23 +176,22 @@ export LDFLAGS="-L${SDKROOT}/usr/lib -arch ${ARCH} -isysroot ${SDKROOT}"
if [ "$PLATFORM" = "OS" ]; then
EXTRA_CFLAGS="-arch ${ARCH}"
+ EXTRA_LDFLAGS="-arch ${ARCH}"
if [ "$ARCH" != "arm64" ]; then
EXTRA_CFLAGS+=" -mcpu=cortex-a8"
EXTRA_CFLAGS+=" -miphoneos-version-min=${SDK_MIN}"
- EXTRA_LDFLAGS+=" -miphoneos-version-min=${SDK_MIN}"
- export LDFLAGS="${LDFLAGS} -miphoneos-version-min=${SDK_MIN}"
+ EXTRA_LDFLAGS+=" -Wl,-ios_version_min,${SDK_MIN}"
+ export LDFLAGS="${LDFLAGS} -Wl,-ios_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}"
+ EXTRA_LDFLAGS+=" -Wl,-ios_version_min,${SIXTYFOURBIT_SDK_MIN}"
+ export LDFLAGS="${LDFLAGS} -Wl,-ios_version_min,${SIXTYFOURBIT_SDK_MIN}"
fi
- EXTRA_LDFLAGS="-arch ${ARCH}"
else
EXTRA_CFLAGS="-arch ${ARCH}"
- EXTRA_LDFLAGS="-arch ${ARCH}"
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}"
+ EXTRA_LDFLAGS=" -Wl,-ios_version_min,${SIXTYFOURBIT_SDK_MIN}"
+ export LDFLAGS="${LDFLAGS} -Wl-ios_version_min,${SIXTYFOURBIT_SDK_MIN}"
fi
@@ -245,6 +244,7 @@ fi
--disable-fontconfig \
--disable-gpg-error \
--disable-lua \
+ --enable-vpx \
--enable-taglib > ${out}
echo "EXTRA_CFLAGS += ${EXTRA_CFLAGS}" >> config.mak
@@ -284,7 +284,7 @@ fi
if [ "$SCARY" = "yes" ]; then
SCARYFLAG="--enable-dvbpsi --enable-avcodec"
else
- SCARYFLAG="--disable-dca --disable-dvbpsi --disable-avcodec --disable-avformat --disable-zvbi"
+ SCARYFLAG="--disable-dca --disable-dvbpsi --disable-avcodec --disable-avformat --disable-zvbi --enable-vpx"
fi
# Run configure only upon changes.
More information about the vlc-commits
mailing list