shithub: libvpx

Download patch

ref: 760223264264a64ed458a895296a09229d7b9fff
parent: e7c949d32d4783004b825485335f9a664b398f59
parent: 9194f3c0cb880fa8a998f4af7646f059182055c4
author: Tom Finegan <[email protected]>
date: Fri Sep 25 18:14:38 EDT 2015

Merge "build/make/configure.sh: Embed bitcode in arm darwin targets."

--- a/build/make/configure.sh
+++ b/build/make/configure.sh
@@ -1044,6 +1044,12 @@
           done
 
           asm_conversion_cmd="${source_path}/build/make/ads2gas_apple.pl"
+
+          if [ "$(show_darwin_sdk_major_version iphoneos)" -gt 8 ]; then
+            check_add_cflags -fembed-bitcode
+            check_add_asflags -fembed-bitcode
+            check_add_ldflags -fembed-bitcode
+          fi
           ;;
 
         linux*)
@@ -1254,6 +1260,13 @@
           enabled x86 && sim_arch="-arch i386" || sim_arch="-arch x86_64"
           add_cflags  ${sim_arch}
           add_ldflags ${sim_arch}
+
+          if [ "$(show_darwin_sdk_major_version iphonesimulator)" -gt 8 ]; then
+            # yasm v1.3.0 doesn't know what -fembed-bitcode means, so turning it
+            # on is pointless (unless building a C-only lib). Warn the user, but
+            # do nothing here.
+            log "Warning: Bitcode embed disabled for simulator targets."
+          fi
           ;;
         os2)
           add_asflags -f aout