shithub: libvpx

Download patch

ref: cd82f6982316e40c8d24ab9d60a90e9a1928f197
parent: 9a8fe58cafe9cc21680be2dec28c2351aeab4a8b
parent: 69ceed8e3a9167e5b69acb97bda7ab892b306f19
author: Tom Finegan <[email protected]>
date: Fri Sep 18 15:38:55 EDT 2015

Merge "iosbuild: Enable PIC for x86 targets."

--- a/build/make/iosbuild.sh
+++ b/build/make/iosbuild.sh
@@ -41,13 +41,22 @@
 build_target() {
   local target="$1"
   local old_pwd="$(pwd)"
+  local target_specific_flags=""
 
   vlog "***Building target: ${target}***"
 
+  case "${target}" in
+    x86-*)
+      target_specific_flags="--enable-pic"
+      vlog "Enabled PIC for ${target}"
+      ;;
+  esac
+
   mkdir "${target}"
   cd "${target}"
   eval "${LIBVPX_SOURCE_DIR}/configure" --target="${target}" \
-    ${CONFIGURE_ARGS} ${EXTRA_CONFIGURE_ARGS} ${devnull}
+    ${CONFIGURE_ARGS} ${EXTRA_CONFIGURE_ARGS} ${target_specific_flags} \
+    ${devnull}
   export DIST_DIR
   eval make -j ${MAKE_JOBS} dist ${devnull}
   cd "${old_pwd}"