0021-package-ios-update-for-future-architectures.patch 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. From 8381c283f37b45ee09b08b08456d901b57b5f2bb Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Felix=20Paul=20K=C3=BChne?= <fkuehne@videolan.org>
  3. Date: Wed, 15 Jan 2014 15:13:42 +0100
  4. Subject: [PATCH 21/24] package/ios: update for future architectures
  5. ---
  6. extras/package/ios/build.sh | 16 +++++++++++-----
  7. 1 file changed, 11 insertions(+), 5 deletions(-)
  8. diff --git a/extras/package/ios/build.sh b/extras/package/ios/build.sh
  9. index a51ef1d..487052c 100755
  10. --- a/extras/package/ios/build.sh
  11. +++ b/extras/package/ios/build.sh
  12. @@ -110,9 +110,6 @@ PREFIX="${VLCROOT}/install-ios-${PLATFORM}/${ARCH}"
  13. export PATH="${VLCROOT}/extras/tools/build/bin:${VLCROOT}/contrib/${TARGET}/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin"
  14. -# contains gas-processor.pl
  15. -export PATH=$PATH:${VLCROOT}/extras/package/ios/resources
  16. -
  17. info "Building tools"
  18. spushd "${VLCROOT}/extras/tools"
  19. ./bootstrap
  20. @@ -135,7 +132,10 @@ export PLATFORM=$PLATFORM
  21. export SDK_VERSION=$SDK_VERSION
  22. if [ "$PLATFORM" = "OS" ]; then
  23. -export CFLAGS="-isysroot ${SDKROOT} -arch ${ARCH} -mcpu=cortex-a8 -miphoneos-version-min=${SDK_MIN} ${OPTIM}"
  24. +export CFLAGS="-isysroot ${SDKROOT} -arch ${ARCH} -miphoneos-version-min=${SDK_MIN} ${OPTIM}"
  25. +if [ "$ARCH" != "arm64" ]; then
  26. +export CFLAGS="${CFLAGS} -mcpu=cortex-a8"
  27. +fi
  28. else
  29. export CFLAGS="-isysroot ${SDKROOT} -arch ${ARCH} -miphoneos-version-min=${SDK_MIN} ${OPTIM}"
  30. fi
  31. @@ -156,7 +156,10 @@ fi
  32. export LDFLAGS="-L${SDKROOT}/usr/lib -arch ${ARCH} -isysroot ${SDKROOT} -miphoneos-version-min=${SDK_MIN}"
  33. if [ "$PLATFORM" = "OS" ]; then
  34. - EXTRA_CFLAGS="-arch ${ARCH} -mcpu=cortex-a8"
  35. + EXTRA_CFLAGS="-arch ${ARCH}"
  36. +if [ "$ARCH" != "arm64" ]; then
  37. + EXTRA_CFLAGS+=" -mcpu=cortex-a8"
  38. +fi
  39. EXTRA_LDFLAGS="-arch ${ARCH}"
  40. else
  41. EXTRA_CFLAGS="-arch ${ARCH}"
  42. @@ -178,6 +181,9 @@ if [ "$PLATFORM" = "OS" ]; then
  43. export AS="gas-preprocessor.pl ${CC}"
  44. export ASCPP="gas-preprocessor.pl ${CC}"
  45. export CCAS="gas-preprocessor.pl ${CC}"
  46. +if [ "$ARCH" = "arm64" ]; then
  47. + export GASPP_FIX_XCODE5=1
  48. +fi
  49. else
  50. export AS="xcrun as"
  51. export ASCPP="xcrun as"
  52. --
  53. 1.8.3.4 (Apple Git-47)