diff options
author | Johann <johannkoenig@google.com> | 2011-12-14 11:54:22 -0800 |
---|---|---|
committer | Gerrit Code Review <gerrit@gerrit.golo.chromium.org> | 2011-12-14 11:54:22 -0800 |
commit | 7d54dfc6e41d60f10a399ad205dc3942723c1df4 (patch) | |
tree | e4a40e2508ebf432c055f5de7971975c45e991c4 | |
parent | 24beb58dd5f7e4b497a46abc7690c1ac7bddff3b (diff) | |
parent | 247e7343d54a9954f1c4bbdaa8cb01793bc7ed9e (diff) | |
download | libvpx-7d54dfc6e41d60f10a399ad205dc3942723c1df4.tar libvpx-7d54dfc6e41d60f10a399ad205dc3942723c1df4.tar.gz libvpx-7d54dfc6e41d60f10a399ad205dc3942723c1df4.tar.bz2 libvpx-7d54dfc6e41d60f10a399ad205dc3942723c1df4.zip |
Merge "Use xcode 4.2"
-rwxr-xr-x | build/make/configure.sh | 21 | ||||
-rwxr-xr-x | configure | 1 |
2 files changed, 18 insertions, 4 deletions
diff --git a/build/make/configure.sh b/build/make/configure.sh index 1279f781a..0426f9220 100755 --- a/build/make/configure.sh +++ b/build/make/configure.sh @@ -561,6 +561,10 @@ process_common_toolchain() { tgt_isa=x86_64 tgt_os=darwin10 ;; + *darwin11*) + tgt_isa=x86_64 + tgt_os=darwin11 + ;; *mingw32*|*cygwin*) [ -z "$tgt_isa" ] && tgt_isa=x86 tgt_os=win32 @@ -617,6 +621,9 @@ process_common_toolchain() { if [ -d "/Developer/SDKs/MacOSX10.6.sdk" ]; then osx_sdk_dir="/Developer/SDKs/MacOSX10.6.sdk" fi + if [ -d "/Developer/SDKs/MacOSX10.7.sdk" ]; then + osx_sdk_dir="/Developer/SDKs/MacOSX10.7.sdk" + fi case ${toolchain} in *-darwin8-*) @@ -637,6 +644,12 @@ process_common_toolchain() { add_ldflags "-isysroot ${osx_sdk_dir}" add_ldflags "-mmacosx-version-min=10.6" ;; + *-darwin11-*) + add_cflags "-isysroot ${osx_sdk_dir}" + add_cflags "-mmacosx-version-min=10.7" + add_ldflags "-isysroot ${osx_sdk_dir}" + add_ldflags "-mmacosx-version-min=10.7" + ;; esac # Handle Solaris variants. Solaris 10 needs -lposix4 @@ -732,7 +745,7 @@ process_common_toolchain() { TOOLCHAIN_PATH=${SDK_PATH}/usr/bin CC=${TOOLCHAIN_PATH}/gcc AR=${TOOLCHAIN_PATH}/ar - LD=${TOOLCHAIN_PATH}/arm-apple-darwin10-gcc-4.2.1 + LD=${TOOLCHAIN_PATH}/arm-apple-darwin10-llvm-gcc-4.2 AS=${TOOLCHAIN_PATH}/as STRIP=${TOOLCHAIN_PATH}/strip NM=${TOOLCHAIN_PATH}/nm @@ -746,13 +759,13 @@ process_common_toolchain() { add_cflags -arch ${tgt_isa} add_ldflags -arch_only ${tgt_isa} - add_cflags "-isysroot ${SDK_PATH}/SDKs/iPhoneOS4.3.sdk" + add_cflags "-isysroot ${SDK_PATH}/SDKs/iPhoneOS5.0.sdk" # This should be overridable - alt_libc=${SDK_PATH}/SDKs/iPhoneOS4.3.sdk + alt_libc=${SDK_PATH}/SDKs/iPhoneOS5.0.sdk # Add the paths for the alternate libc - for d in usr/include usr/include/gcc/darwin/4.2/ usr/lib/gcc/arm-apple-darwin10/4.2.1/include/; do + for d in usr/include; do try_dir="${alt_libc}/${d}" [ -d "${try_dir}" ] && add_cflags -I"${try_dir}" done @@ -119,6 +119,7 @@ all_platforms="${all_platforms} x86-win32-vs8" all_platforms="${all_platforms} x86-win32-vs9" all_platforms="${all_platforms} x86_64-darwin9-gcc" all_platforms="${all_platforms} x86_64-darwin10-gcc" +all_platforms="${all_platforms} x86_64-darwin11-gcc" all_platforms="${all_platforms} x86_64-linux-gcc" all_platforms="${all_platforms} x86_64-linux-icc" all_platforms="${all_platforms} x86_64-solaris-gcc" |