aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2011-10-29 21:59:34 -0500
committerJack Nagel2011-10-29 22:02:17 -0500
commitcace500a4487ca30b57b3b986c8e154f9caec9e7 (patch)
treeb01eb476a91b5bf000d4ce231599d59faf0b376c /Library/Formula
parentbaff30595657f19928c10bb241376ab0ccd30cd9 (diff)
downloadhomebrew-cace500a4487ca30b57b3b986c8e154f9caec9e7.tar.bz2
bdw-gc: fix LLVM builds
Applying a patch from MacPorts fixes the inline asm errors, and the fix is already present in recent upstream sources. Now we run 'make check' since we're patching important code, and it's quick anyway. Closes #8180. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/bdw-gc.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/Library/Formula/bdw-gc.rb b/Library/Formula/bdw-gc.rb
index cfed49319..e8d6596a7 100644
--- a/Library/Formula/bdw-gc.rb
+++ b/Library/Formula/bdw-gc.rb
@@ -5,7 +5,11 @@ class BdwGc < Formula
homepage 'http://www.hpl.hp.com/personal/Hans_Boehm/gc/'
md5 '2ff9924c7249ef7f736ecfe6f08f3f9b'
- fails_with_llvm "LLVM gives an unsupported inline asm error", :build => 2335
+ # MacPorts patch to fix inline asm errors with LLVM
+ # this fix is present in upstream development versions
+ def patches
+ { :p0 => "https://trac.macports.org/export/86621/trunk/dports/devel/boehmgc/files/asm.patch" }
+ end
def install
# ucontext has been deprecated in 10.6
@@ -14,6 +18,8 @@ class BdwGc < Formula
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
+ system "make"
+ system "make check"
system "make install"
end
end