Fix installation of LuaJIT jit.* modules

This commit is contained in:
mpeterv 2015-12-04 17:45:58 +03:00
parent 2efa014352
commit 2deeec1a00
2 changed files with 4 additions and 2 deletions

View File

@ -447,10 +447,11 @@ class LuaJIT(Lua):
def make():
run_command("make", "PREFIX=" + quote(opts.location))
@staticmethod
def make_install():
def make_install(self):
run_command("make install", "PREFIX=" + quote(opts.location),
"INSTALL_TNAME=lua", "INSTALL_TSYM=luajit_symlink",
"INSTALL_LJLIBD=" + quote(os.path.join(
opts.location, "share", "lua", self.major_version)),
"INSTALL_INC=" + quote(os.path.join(opts.location, "include")))
if os.path.exists(os.path.join(opts.location, "bin", "luajit_symlink")):

View File

@ -14,6 +14,7 @@ $HEREROCKS -l^ -r^ | grep "already installed"
rm test/here -rf
$HEREROCKS -j 2.1 -r^ | grep "Fetching" | grep "cached"
lua -v
lua -e "require 'jit.bcsave'"
luarocks --version
luarocks make
hererocks-test | grep "2\.1"