aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Formula/cairo.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/Library/Formula/cairo.rb b/Library/Formula/cairo.rb
index 019a0a8ca..c921cf677 100644
--- a/Library/Formula/cairo.rb
+++ b/Library/Formula/cairo.rb
@@ -14,6 +14,12 @@ class Cairo < Formula
fails_with_llvm "Gives an LLVM ERROR with Xcode 4 on some CPUs"
def install
+ # Cairo doesn't build correctly with llvm-gcc 4.2, so force normal gcc.
+ # See:
+ # https://github.com/mxcl/homebrew/issues/6631
+ # https://trac.macports.org/ticket/30370
+ # https://trac.macports.org/browser/trunk/dports/graphics/cairo/Portfile
+ ENV.gcc_4_2
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--with-x"