From ab8c5b2a13eccff8cf2b7cc0df2d3578c9008ace Mon Sep 17 00:00:00 2001 From: Douglas Creager Date: Wed, 3 Aug 2011 22:03:24 -0400 Subject: luajit: Fix build issues on Lion Signed-off-by: Adam Vandenberg --- Library/Formula/luajit.rb | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/luajit.rb b/Library/Formula/luajit.rb index fa1cb26a1..2f49f0482 100644 --- a/Library/Formula/luajit.rb +++ b/Library/Formula/luajit.rb @@ -9,6 +9,8 @@ class Luajit < Formula # Skip cleaning both empty folders and bin/libs so external symbols still work. skip_clean :all + fails_with_llvm "_Unwind_Exception_Class undeclared", :build => 2335 + def options [["--debug", "Build with debugging symbols."]] end @@ -22,11 +24,19 @@ class Luajit < Formula def install if ARGV.include? '--debug' - system "make", "CCDEBUG=-g", "PREFIX=#{prefix}", "amalg" - system "make", "CCDEBUG=-g", "PREFIX=#{prefix}", "install" + system "make", "CCDEBUG=-g", "PREFIX=#{prefix}", + "TARGET_CC=#{ENV['CC']}", + "amalg" + system "make", "CCDEBUG=-g", "PREFIX=#{prefix}", + "TARGET_CC=#{ENV['CC']}", + "install" else - system "make", "PREFIX=#{prefix}", "amalg" - system "make", "PREFIX=#{prefix}", "install" + system "make", "PREFIX=#{prefix}", + "TARGET_CC=#{ENV['CC']}", + "amalg" + system "make", "PREFIX=#{prefix}", + "TARGET_CC=#{ENV['CC']}", + "install" end # Non-versioned symlink -- cgit v1.2.3