commit 88d639e

hovercats  ·  2024-09-19 19:20:40 +0000 UTC
parent 84c6539
luajit: 2.1
5 files changed,  +36, -8
+6, -5
 1@@ -1,11 +1,12 @@
 2 #!/bin/sh -e
 3 
 4 export CFLAGS="$CFLAGS -fasynchronous-unwind-tables"
 5+export LDFLAGS="$LDFLAGS -static-libgcc"
 6+
 7+patch -p1 < 0001-fix-check-for-toolchain-generateing-unwind-tables.patch
 8 
 9 make amalg   PREFIX=/usr
10-make install PREFIX=/usr DESTDIR="$1"
11+make install PREFIX=/usr DESTDIR="$1" INSTALL_TNAME=luajit
12 
13-# Create these symlinks ourselves as luajit relies
14-# on ldconfig to do so and musl does not provide it.
15-ln -sf libluajit-5.1.so.2.0.5 "$1/usr/lib/libluajit-5.1.so"
16-ln -sf libluajit-5.1.so.2.0.5 "$1/usr/lib/libluajit-5.1.so.2"
17+# Compress manpages
18+find "$1/usr/share/man" -type f -exec gzip -n -9 {} +
+2, -1
1@@ -1 +1,2 @@
2-d63b203a60de7c8c6963f896be53649415f6ccdae2338c73079ea505b3228952a5
3+bceaa938dd383a6e1838bc7f08339801a524c5df0bbe2997dbece665a613d4324c
4+b31871a6054ddd5857686d0f6afcb160bcd6bb314d3ab80838bfa1749b1d037785
+25, -0
 1@@ -0,0 +1,25 @@
 2+From c5a326cc3911b0e498522aab845a5e32fcaa1280 Mon Sep 17 00:00:00 2001
 3+From: hovercats <hovercatswithlasereyes@protonmail.com>
 4+Date: Thu, 19 Sep 2024 21:13:15 +0200
 5+Subject: [PATCH] fix check for toolchain generateing unwind tables
 6+
 7+---
 8+ src/Makefile | 2 +-
 9+ 1 file changed, 1 insertion(+), 1 deletion(-)
10+
11+diff --git a/src/Makefile b/src/Makefile
12+index 71857ed6..e85a9448 100644
13+--- a/src/Makefile
14++++ b/src/Makefile
15+@@ -342,7 +342,7 @@ ifeq (iOS,$(TARGET_SYS))
16+ else
17+   ifeq (,$(findstring LJ_NO_UNWIND 1,$(TARGET_TESTARCH)))
18+     # Find out whether the target toolchain always generates unwind tables.
19+-    TARGET_TESTUNWIND=$(shell exec 2>/dev/null; echo 'extern void b(void);int a(void){b();return 0;}' | $(TARGET_CC) -c -x c - -o tmpunwind.o && { grep -qa -e eh_frame -e __unwind_info tmpunwind.o || grep -qU -e eh_frame -e __unwind_info tmpunwind.o; } && echo E; rm -f tmpunwind.o)
20++    TARGET_TESTUNWIND=$(shell exec 2>/dev/null; echo 'extern void b(void);int a(void){b();return 0;}' | $(TARGET_CC) -c -x c - -o tmpunwind.o && { strings tmpunwind.o | grep -q -e eh_frame -e __unwind_info; } && echo E; rm -f tmpunwind.o)
21+     ifneq (,$(findstring E,$(TARGET_TESTUNWIND)))
22+       TARGET_XCFLAGS+= -DLUAJIT_UNWIND_EXTERNAL
23+     endif
24+-- 
25+2.45.1
26+
+2, -1
1@@ -1 +1,2 @@
2-https://github.com/LuaJIT/LuaJIT/archive/refs/tags/v2.0.5.tar.gz
3+https://github.com/LuaJIT/LuaJIT/archive/refs/tags/v2.1.ROLLING.tar.gz
4+patches/0001-fix-check-for-toolchain-generateing-unwind-tables.patch
+1, -1
1@@ -1 +1 @@
2-2.0.5 4
3+2.1-20240815 1