]> git.99rst.org Git - openwrt-packages.git/commit
luajit2: fix build and runtime on powerpc
authorJosef Schlehofer <redacted>
Sat, 15 Aug 2026 09:21:08 +0000 (11:21 +0200)
committerJosef Schlehofer <redacted>
Sat, 15 Aug 2026 09:29:16 +0000 (11:29 +0200)
commita6b248d6b808710c325f1295773baf7b242123b7
tree861f0dba998dc84115d6e1f5bf4ae240a88fe7d3
parentae3874f304d85d8978422f8e466105b9bebf2e7f
luajit2: fix build and runtime on powerpc

luajit2 currently fails to link for powerpc: lj_vm.o emits PLT calls
that force BSS-PLT, which the inline-PLT relocations emitted by GCC 12
and newer do not support. Add the same GOT-based fix that
lang/lua/luajit has carried as 060-ppc-musl.patch since 2019.

With that in place the package builds, but ipairs() and pairs() turn
out to be broken on 32-bit big-endian soft-float targets. Both are
regressions in luajit2's PPC64 patch and do not affect upstream
LuaJIT. To be submitted to openresty/luajit2 as well.

Signed-off-by: Josef Schlehofer <redacted>
lang/lua/luajit2/Makefile
lang/lua/luajit2/patches/030-PPC-Fix-ipairs-on-soft-float-targets.patch [new file with mode: 0644]
lang/lua/luajit2/patches/040-PPC-Fix-pairs-over-hash-less-tables-on-soft-float.patch [new file with mode: 0644]
lang/lua/luajit2/patches/050-PPC-Call-libm-helpers-via-private-GOT.patch [new file with mode: 0644]
git clone https://git.99rst.org/PROJECT