aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2011-04-13 12:30:02 -0700
committerAdam Vandenberg2011-04-13 12:30:02 -0700
commitec0b15df0e6a81ddb69ed205f473fba11c59f27f (patch)
treed750abf636a9a22b16b05f0d7bb9c0fb2db40a7b /Library
parent6005d3b5f730a509ef955398db1bf2ab2d094d17 (diff)
downloadhomebrew-ec0b15df0e6a81ddb69ed205f473fba11c59f27f.tar.bz2
libvpx: fix 32-bit issues
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/libvpx.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Formula/libvpx.rb b/Library/Formula/libvpx.rb
index a184c0b4e..e9046804d 100644
--- a/Library/Formula/libvpx.rb
+++ b/Library/Formula/libvpx.rb
@@ -8,7 +8,11 @@ class Libvpx < Formula
depends_on 'yasm' => :build
def install
- system "./configure", "--prefix=#{prefix}"
+ args = "--prefix=#{prefix}"
+ # Configure detects 32-bit CPUs incorrectly.
+ args << "--target=generic-gnu" unless MacOS.prefer_64_bit?
+
+ system "./configure", *args
system "make install"
end
end