aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorDavid Caldwell2013-10-07 17:51:55 -0700
committerAdam Vandenberg2013-10-07 19:31:03 -0700
commit5dadac540e4ade1361fd6876637e6ace936d6527 (patch)
tree612f023a4c9e4d30149a174e9639e753723ead83 /Library/Formula
parentef6171e19aef0179b6c9747dd79eaf72fc98d406 (diff)
downloadhomebrew-5dadac540e4ade1361fd6876637e6ace936d6527.tar.bz2
libvpx: fix compilation on Mavericks
libc++ doesn't include the C++ TR1 extensions which libvpx needs, so force it to use its own built-in tuple code by passing -DGTEST_USE_OWN_TR1_TUPLE=1 to the compiler. Closes #23116. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/libvpx.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/Library/Formula/libvpx.rb b/Library/Formula/libvpx.rb
index 61a9ebd62..4a95810b0 100644
--- a/Library/Formula/libvpx.rb
+++ b/Library/Formula/libvpx.rb
@@ -23,6 +23,7 @@ class Libvpx < Formula
args << "--enable-gcov" if build.include? "gcov" and not ENV.compiler == :clang
args << "--enable-mem-tracker" if build.include? "mem-tracker"
args << "--enable-postproc-visualizer" if build.include? "visualizer"
+ args << "--extra-cflags=-DGTEST_USE_OWN_TR1_TUPLE=1" # Mavericks uses libc++ which doesn't supply <TR1/tuple>
# see http://code.google.com/p/webm/issues/detail?id=401
# Configure misdetects 32-bit 10.6.