summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorChristian Duvivier <cduvivier@google.com>2012-08-06 15:05:24 -0700
committerChristian Duvivier <cduvivier@google.com>2012-08-06 15:26:58 -0700
commit82edabce75f6cd824a096b05c7cecc2349e6861a (patch)
tree969126f600e297f1ed86f4b1b537476521aaf914 /build
parentfcbb884e45803e635d0eb5524f48b6aaeab73197 (diff)
downloadlibvpx-82edabce75f6cd824a096b05c7cecc2349e6861a.tar
libvpx-82edabce75f6cd824a096b05c7cecc2349e6861a.tar.gz
libvpx-82edabce75f6cd824a096b05c7cecc2349e6861a.tar.bz2
libvpx-82edabce75f6cd824a096b05c7cecc2349e6861a.zip
Add x86_64-darwin11-gcc target.
This allows building on MountainLion as the 10.6 SDK has been removed from the latest Xcode version (4.4 4F250). Also fix all warnings for that build. Change-Id: Ib70bca4a25295f13595f0d10ea9f0229631de5a4
Diffstat (limited to 'build')
-rwxr-xr-xbuild/make/configure.sh6
-rwxr-xr-xbuild/make/gen_asm_deps.sh2
2 files changed, 7 insertions, 1 deletions
diff --git a/build/make/configure.sh b/build/make/configure.sh
index ab087f172..552f8c188 100755
--- a/build/make/configure.sh
+++ b/build/make/configure.sh
@@ -623,6 +623,12 @@ process_common_toolchain() {
add_ldflags "-isysroot /Developer/SDKs/MacOSX10.6.sdk"
add_ldflags "-mmacosx-version-min=10.6"
;;
+ *-darwin11-*)
+ add_cflags "-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk"
+ add_cflags "-mmacosx-version-min=10.7"
+ add_ldflags "-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk"
+ add_ldflags "-mmacosx-version-min=10.7"
+ ;;
esac
# Handle Solaris variants. Solaris 10 needs -lposix4
diff --git a/build/make/gen_asm_deps.sh b/build/make/gen_asm_deps.sh
index 7c6c5d565..a75418aa6 100755
--- a/build/make/gen_asm_deps.sh
+++ b/build/make/gen_asm_deps.sh
@@ -42,7 +42,7 @@ done
[ -n "$srcfile" ] || show_help
sfx=${sfx:-asm}
-includes=$(egrep -i "include +\"?+[a-z0-9_/]+\.${sfx}" $srcfile |
+includes=$(egrep -i "include +\"?[a-z0-9_/]+\.${sfx}" $srcfile |
perl -p -e "s;.*?([a-z0-9_/]+.${sfx}).*;\1;")
#" restore editor state
for inc in ${includes}; do