forked from pool/luajit
* Fix limit check in narrow_conv_backprop(). * Always use IRT_NIL for IR_TBAR. * ARM64: Use ldr literal to load FP constants. * FFI: Add missing coercion when recording 64-bit bit.*(). * ARM64: Make tobit conversions match JIT backend behavior. * ARM: Make hard-float tobit conversions match JIT backend behavior. * FFI: Drop finalizer table rehash after GC cycle. * Fix another potential file descriptor leak in luaL_loadfile*(). * MIPS32: Fix little-endian IR_RETF. * Correctly close VM state after early OOM during open. * Fix potential file descriptor leak in luaL_loadfile*(). * Reflect override of INSTALL_LJLIBD in package.path. * ARM64: Use movi to materialize FP constants. * Add more FOLD rules for integer conversions. * Different fix for partial snapshot restore due to stack overflow. * Fix IR_ABC hoisting. * Limit CSE for IR_CARG to fix loop optimizations. * Call math.randomseed() without arguments to seed from system entropy. * Restore state when recording __concat metamethod throws an error. * Add build flag LUAJIT_DISABLE_TAILCALL to disable tailcall generation. * Clarify that lj_buf_shrink() does not keep any buffer data. * OSX: Fix installed luajit.pc. * FFI: Fix various issues in recff_cdata_arith. * Fix predict_next() in parser (for real now). * FFI: Fix __tostring metamethod access to enum cdata value. * Fix typo. * Handle partial snapshot restore due to stack overflow. * Update Nintendo Switch build script. * Prevent sanitizer warning in snap_restoredata(). OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/luajit?expand=0&rev=58
94 lines
2.9 KiB
Diff
94 lines
2.9 KiB
Diff
---
|
|
Makefile | 9 +++++----
|
|
etc/luajit.pc | 2 +-
|
|
src/Makefile | 3 ++-
|
|
src/luaconf.h | 2 +-
|
|
4 files changed, 9 insertions(+), 7 deletions(-)
|
|
|
|
--- a/Makefile
|
|
+++ b/Makefile
|
|
@@ -16,13 +16,14 @@
|
|
MAJVER= 2
|
|
MINVER= 1
|
|
ABIVER= 5.1
|
|
+SUFFIX= 5_1
|
|
|
|
# LuaJIT uses rolling releases. The release version is based on the time of
|
|
# the latest git commit. The 'git' command must be available during the build.
|
|
RELVER= $(shell cat src/luajit_relver.txt 2>/dev/null || : )
|
|
# Note: setting it with := doesn't work, since it will change during the build.
|
|
|
|
-MMVERSION= $(MAJVER).$(MINVER)
|
|
+MMVERSION= $(SUFFIX)-$(MAJVER).$(MINVER)
|
|
VERSION= $(MMVERSION).$(RELVER)
|
|
|
|
##############################################################################
|
|
@@ -51,7 +52,7 @@ INSTALL_MAN= $(INSTALL_SHARE)/man/man1
|
|
INSTALL_PKGCONFIG= $(INSTALL_LIB)/pkgconfig
|
|
|
|
INSTALL_TNAME= luajit-$(VERSION)
|
|
-INSTALL_TSYMNAME= luajit
|
|
+INSTALL_TSYMNAME= luajit-$(SUFFIX)
|
|
INSTALL_ANAME= libluajit-$(ABIVER).a
|
|
INSTALL_SOSHORT1= libluajit-$(ABIVER).so
|
|
INSTALL_SOSHORT2= libluajit-$(ABIVER).so.$(MAJVER)
|
|
@@ -89,7 +90,7 @@ ifneq ($(INSTALL_DEFINC),$(INSTALL_INC))
|
|
SED_PC+= -e "s|^includedir=.*|includedir=$(INSTALL_INC)|"
|
|
endif
|
|
|
|
-FILE_T= luajit
|
|
+FILE_T= luajit-$(SUFFIX)
|
|
FILE_A= libluajit.a
|
|
FILE_SO= libluajit.so
|
|
FILE_MAN= luajit.1
|
|
@@ -137,7 +138,7 @@ install: $(INSTALL_DEP)
|
|
( $(LDCONFIG) $(INSTALL_LIB) || : ) && \
|
|
$(SYMLINK) $(INSTALL_SONAME) $(INSTALL_SHORT1) && \
|
|
$(SYMLINK) $(INSTALL_SONAME) $(INSTALL_SHORT2) || :
|
|
- cd etc && $(INSTALL_F) $(FILE_MAN) $(INSTALL_MAN)
|
|
+ cd etc && $(INSTALL_F) $(FILE_MAN) $(INSTALL_MAN)/luajit-$(SUFFIX).1
|
|
cd etc && $(SED_PC) $(FILE_PC) > $(FILE_PC).tmp && \
|
|
$(INSTALL_F) $(FILE_PC).tmp $(INSTALL_PC) && \
|
|
$(RM) $(FILE_PC).tmp
|
|
--- a/etc/luajit.pc
|
|
+++ b/etc/luajit.pc
|
|
@@ -10,7 +10,7 @@ multilib=lib
|
|
exec_prefix=${prefix}
|
|
libdir=${exec_prefix}/${multilib}
|
|
libname=luajit-${abiver}
|
|
-includedir=${prefix}/include/luajit-${majver}.${minver}
|
|
+includedir=${prefix}/include/luajit-5_1-${majver}.${minver}
|
|
|
|
INSTALL_LMOD=${prefix}/share/lua/${abiver}
|
|
INSTALL_CMOD=${prefix}/${multilib}/lua/${abiver}
|
|
--- a/src/Makefile
|
|
+++ b/src/Makefile
|
|
@@ -14,6 +14,7 @@ MAJVER= 2
|
|
MINVER= 1
|
|
ABIVER= 5.1
|
|
NODOTABIVER= 51
|
|
+SUFFIX= 5_1
|
|
|
|
##############################################################################
|
|
############################# COMPILER OPTIONS #############################
|
|
@@ -527,7 +528,7 @@ LIB_VMDEFP= $(LIB_VMDEF)
|
|
LUAJIT_O= luajit.o
|
|
LUAJIT_A= libluajit.a
|
|
LUAJIT_SO= libluajit.so
|
|
-LUAJIT_T= luajit
|
|
+LUAJIT_T= luajit-$(SUFFIX)
|
|
|
|
ALL_T= $(LUAJIT_T) $(LUAJIT_A) $(LUAJIT_SO) $(HOST_T)
|
|
ALL_HDRGEN= lj_bcdef.h lj_ffdef.h lj_libdef.h lj_recdef.h lj_folddef.h \
|
|
--- a/src/luaconf.h
|
|
+++ b/src/luaconf.h
|
|
@@ -51,7 +51,7 @@
|
|
#endif
|
|
|
|
#ifndef LUA_LJDIR
|
|
-#define LUA_LJDIR LUA_JROOT "/share/luajit-2.1"
|
|
+#define LUA_LJDIR "/luajit-5_1-2.1/"
|
|
#endif
|
|
|
|
#define LUA_JPATH ";" LUA_LJDIR "/?.lua"
|