Fix installation of LuaJIT jit.* modules
This commit is contained in:
parent
2efa014352
commit
2deeec1a00
@ -447,10 +447,11 @@ class LuaJIT(Lua):
|
|||||||
def make():
|
def make():
|
||||||
run_command("make", "PREFIX=" + quote(opts.location))
|
run_command("make", "PREFIX=" + quote(opts.location))
|
||||||
|
|
||||||
@staticmethod
|
def make_install(self):
|
||||||
def make_install():
|
|
||||||
run_command("make install", "PREFIX=" + quote(opts.location),
|
run_command("make install", "PREFIX=" + quote(opts.location),
|
||||||
"INSTALL_TNAME=lua", "INSTALL_TSYM=luajit_symlink",
|
"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")))
|
"INSTALL_INC=" + quote(os.path.join(opts.location, "include")))
|
||||||
|
|
||||||
if os.path.exists(os.path.join(opts.location, "bin", "luajit_symlink")):
|
if os.path.exists(os.path.join(opts.location, "bin", "luajit_symlink")):
|
||||||
|
|||||||
1
test.sh
1
test.sh
@ -14,6 +14,7 @@ $HEREROCKS -l^ -r^ | grep "already installed"
|
|||||||
rm test/here -rf
|
rm test/here -rf
|
||||||
$HEREROCKS -j 2.1 -r^ | grep "Fetching" | grep "cached"
|
$HEREROCKS -j 2.1 -r^ | grep "Fetching" | grep "cached"
|
||||||
lua -v
|
lua -v
|
||||||
|
lua -e "require 'jit.bcsave'"
|
||||||
luarocks --version
|
luarocks --version
|
||||||
luarocks make
|
luarocks make
|
||||||
hererocks-test | grep "2\.1"
|
hererocks-test | grep "2\.1"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user