libvpx: fix 32-bit issues

master
Adam Vandenberg 2011-04-13 12:30:02 -07:00
parent aea781bab8
commit 7cd5e9c0ef
1 changed files with 5 additions and 1 deletions

View File

@ -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