From: Tom Finegan Date: Thu, 17 Sep 2015 23:22:07 +0000 (-0700) Subject: iosbuild: Enable PIC for x86 targets. X-Git-Tag: v1.5.0~137^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=69ceed8e3a9167e5b69acb97bda7ab892b306f19;p=libvpx iosbuild: Enable PIC for x86 targets. Change-Id: I03b1e8f983f8cd87519aefda732210359b319c81 --- diff --git a/build/make/iosbuild.sh b/build/make/iosbuild.sh index 181b31370..927f3e532 100755 --- a/build/make/iosbuild.sh +++ b/build/make/iosbuild.sh @@ -41,13 +41,22 @@ TARGETS="arm64-darwin-gcc 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}"