diff options
| author | Douglas Creager | 2011-08-03 22:03:24 -0400 |
|---|---|---|
| committer | Adam Vandenberg | 2011-11-20 17:23:40 -0800 |
| commit | ab8c5b2a13eccff8cf2b7cc0df2d3578c9008ace (patch) | |
| tree | e17416a424aacd8a10bb706f633a90e1a6cdef29 /Library/Formula | |
| parent | 1a69ee3ed9eff6820cb8af6cae87ff0797f2a1ae (diff) | |
| download | homebrew-ab8c5b2a13eccff8cf2b7cc0df2d3578c9008ace.tar.bz2 | |
luajit: Fix build issues on Lion
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/luajit.rb | 18 |
1 files changed, 14 insertions, 4 deletions
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 |
