aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/luarocks.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/Library/Formula/luarocks.rb b/Library/Formula/luarocks.rb
index c34add082..1b1ff84d0 100644
--- a/Library/Formula/luarocks.rb
+++ b/Library/Formula/luarocks.rb
@@ -38,9 +38,11 @@ class Luarocks < Formula
"--sysconfdir=#{etc}/luarocks"]
if build.with? "luajit"
- args << "--with-lua-include=#{HOMEBREW_PREFIX}/include/luajit-2.0"
+ luajit_prefix = Formula["luajit"].opt_prefix
+
+ args << "--with-lua-include=#{luajit_prefix}/include/luajit-2.0"
args << "--lua-suffix=jit"
- args << "--with-lua=luajit"
+ args << "--with-lua=#{luajit_prefix}"
end
system "./configure", *args