update to luajit-2.1.1760617492, which includes a modified version of

a patch from Yuichiro NAITO adding landing pads for branch tracking
for x86.

change USE_NOBTCFI to USE_NOBTCFI-aarch64.
This commit is contained in:
sthen
2025-10-17 11:26:49 +00:00
parent 5f66a2f555
commit aa6ca2d051
4 changed files with 14 additions and 10 deletions
+8 -4
View File
@@ -1,6 +1,7 @@
# keep arch-defines.mk LUAJIT_ARCHS in sync
# bump ports which use PROPERTIES:Mluajit if changing
ONLY_FOR_ARCHS = aarch64 arm amd64 i386 powerpc
USE_NOBTCFI-aarch64 = Yes
#
# games/tome4 is using embedded copy of luajit
@@ -14,10 +15,10 @@ SHARED_LIBS += luajit-5.1 1.0 # 2.0.5
# changes look (because they often are not)."
GH_ACCOUNT = LuaJIT
GH_PROJECT = LuaJIT
GH_COMMIT = 871db2c84ecefd70a850e03a6c340214a81739f0
GH_COMMIT = 25a61a182166fec06f1a1a025eb8fabbb6cf483e
# epoch time of the commit; easiest found in ${WRKSRC}/.relver of the
# git-archive tar
V = 2.1.1753364724
V = 2.1.1760617492
COMMENT = just-in-time compiler for Lua
DISTNAME = LuaJIT-${V}
@@ -30,8 +31,6 @@ HOMEPAGE = https://luajit.org/
# MIT
PERMIT_PACKAGE = Yes
USE_NOBTCFI = Yes
WANTLIB = c m
MODULES = lang/lua
@@ -49,6 +48,11 @@ MAKE_FLAGS += \
PREFIX="${PREFIX}" \
Q= E=@:
.if ${MACHINE_ARCH} == amd64
MAKE_FLAGS += \
XCFLAGS=-DLUAJIT_ENABLE_CET_BR
.endif
USE_GMAKE = Yes
SUBST_VARS = V
+2 -2
View File
@@ -1,2 +1,2 @@
SHA256 (LuaJIT-2.1.1753364724-871db2c8.tar.gz) = qz8W2C32lGVDVlz7DSgQ04fXmjpD4EMWlbA0ZhiOJoA=
SIZE (LuaJIT-2.1.1753364724-871db2c8.tar.gz) = 1084103
SHA256 (LuaJIT-2.1.1760617492-25a61a18.tar.gz) = P8ortQaNcVDTJKNOqsVVdXuM6U8VVl4KBVI3P3U0CB4=
SIZE (LuaJIT-2.1.1760617492-25a61a18.tar.gz) = 1084654
+3 -3
View File
@@ -1,8 +1,8 @@
Index: src/Makefile
--- src/Makefile.orig
+++ src/Makefile
@@ -357,6 +357,10 @@ else
ifeq (GNU/kFreeBSD,$(TARGET_SYS))
@@ -360,6 +360,10 @@ else
ifeq (GNU,$(TARGET_SYS))
TARGET_XLIBS+= -ldl
endif
+ ifeq (OpenBSD,$(TARGET_SYS))
@@ -12,7 +12,7 @@ Index: src/Makefile
endif
endif
endif
@@ -614,10 +618,10 @@ endif
@@ -621,10 +625,10 @@ endif
endif
endif
+1 -1
View File
@@ -5,7 +5,7 @@ ignore the gcc version check ifdef hell for all base-clang arches.
Index: src/lj_arch.h
--- src/lj_arch.h.orig
+++ src/lj_arch.h
@@ -446,7 +446,7 @@
@@ -460,7 +460,7 @@
/* -- Checks for requirements --------------------------------------------- */
/* Check for minimum required compiler versions. */