From f181e89d1e459aaeea44932f32381b43d4fc1dec Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Wed, 9 Nov 2011 17:26:43 -0600 Subject: Valgrind: fix build on 32-bit Snow Leopard Signed-off-by: Jack Nagel --- Library/Formula/valgrind.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Library/Formula') 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 -- cgit v1.2.3