From: Joshua Bleecher Snyder Date: Thu, 14 Apr 2011 13:28:49 +0000 (-0400) Subject: update configure for ios sdk 4.3 X-Git-Tag: 1.0_branch~542^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5e7a3bb69aa7ce2ef559d0aae037f3a598dcf091;p=profile%2Fivi%2Flibvpx.git update configure for ios sdk 4.3 update for the latest version of the ios sdk. adding usr/lib/system fixes a missing libcache.dylib issue make isysroot path more DRY Change-Id: Ib748ef3dac3cac2e4848fbffa1e9a0112eac826b --- diff --git a/build/make/configure.sh b/build/make/configure.sh index a48fd9f..085170d 100755 --- a/build/make/configure.sh +++ b/build/make/configure.sh @@ -729,19 +729,18 @@ process_common_toolchain() { add_cflags -arch ${tgt_isa} add_ldflags -arch_only ${tgt_isa} - add_cflags "-isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk" + add_cflags "-isysroot ${SDK_PATH}/SDKs/iPhoneOS4.3.sdk" # This should be overridable - alt_libc=${SDK_PATH}/SDKs/iPhoneOS4.2.sdk + alt_libc=${SDK_PATH}/SDKs/iPhoneOS4.3.sdk # Add the paths for the alternate libc -# for d in usr/include usr/include/gcc/darwin/4.0/; do - for d in usr/include usr/include/gcc/darwin/4.0/ usr/lib/gcc/arm-apple-darwin10/4.2.1/include/; do + for d in usr/include usr/include/gcc/darwin/4.2/ usr/lib/gcc/arm-apple-darwin10/4.2.1/include/; do try_dir="${alt_libc}/${d}" [ -d "${try_dir}" ] && add_cflags -I"${try_dir}" done - for d in lib usr/lib; do + for d in lib usr/lib usr/lib/system; do try_dir="${alt_libc}/${d}" [ -d "${try_dir}" ] && add_ldflags -L"${try_dir}" done