diff options
| author | bkonkle | 2010-08-19 16:13:48 -0500 |
|---|---|---|
| committer | Adam Vandenberg | 2010-08-19 14:53:34 -0700 |
| commit | a0a1d73d845fcf83e8b01c65afe4820ab78fc76e (patch) | |
| tree | 459942fd380be90ef983fa60221ba135977f4b69 | |
| parent | 77a8b43daa109a0f77346ea16196b2259452afe2 (diff) | |
| download | homebrew-a0a1d73d845fcf83e8b01c65afe4820ab78fc76e.tar.bz2 | |
Resolved madplay error 'CPU you selected does not support x86-64' on 10.6 i5 machines
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
| -rw-r--r-- | Library/Formula/madplay.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Library/Formula/madplay.rb b/Library/Formula/madplay.rb index 27d74c57b..245625c8e 100644 --- a/Library/Formula/madplay.rb +++ b/Library/Formula/madplay.rb @@ -16,7 +16,10 @@ class Madplay <Formula end def install - system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking" + configure_flags = ["--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"] + # Avoid "error: CPU you selected does not support x86-64 instruction set" + configure_flags << "--build=x86_64" if Hardware.is_64_bit? and MACOS_VERSION >= 10.6 + system "./configure", *configure_flags system "make install" end end |
