aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2011-11-09 17:26:43 -0600
committerJack Nagel2011-11-09 17:26:43 -0600
commitf181e89d1e459aaeea44932f32381b43d4fc1dec (patch)
tree7627ac7d2a7d621735c48db6142132c7e0fd4f97 /Library
parentbd2eab28b49c127a47554d167e093c9cd9566cda (diff)
downloadhomebrew-f181e89d1e459aaeea44932f32381b43d4fc1dec.tar.bz2
Valgrind: fix build on 32-bit Snow Leopard
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/valgrind.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/Library/Formula/valgrind.rb b/Library/Formula/valgrind.rb
index a77dc87de..8c9afce4b 100644
--- a/Library/Formula/valgrind.rb
+++ b/Library/Formula/valgrind.rb
@@ -16,7 +16,11 @@ class Valgrind < Formula
def install
args = ["--prefix=#{prefix}", "--mandir=#{man}"]
- args << "--enable-only64bit" << "--build=amd64-darwin" if MacOS.prefer_64_bit?
+ if MacOS.prefer_64_bit?
+ args << "--enable-only64bit" << "--build=amd64-darwin"
+ else
+ args << "--enable-only32bit"
+ end
system "./configure", *args
system "make"
@@ -26,4 +30,4 @@ class Valgrind < Formula
def test
system "valgrind ls -l"
end
-end \ No newline at end of file
+end