mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-23 13:24:17 +08:00
Compiles and luajit executable passes tests found at https://github.com/LuaJIT/LuaJIT-test-cleanup (excluding some that appear to be related to the static build). Compiled without W^X memory permission support because there appears to be some issue with the mprotect() call.
26 lines
745 B
TOML
26 lines
745 B
TOML
#TODO remove -DLUAJIT_SECURITY_MCODE=0
|
|
[source]
|
|
# LuaJIT is only available as a rolling release
|
|
git = "https://luajit.org/git/luajit.git"
|
|
rev = "2090842410e0ba6f81fad310a77bf5432488249a"
|
|
|
|
[build]
|
|
template = "custom"
|
|
script = """
|
|
rsync -av --delete "${COOKBOOK_SOURCE}/" ./
|
|
|
|
# Cookbook doesn't apply patches to git repositiories (so we do it manually)
|
|
# The patch is applied so that LUAJIT_OS is set to LUAJIT_OS_POSIX without
|
|
# redefinition warnings
|
|
git apply "${COOKBOOK_RECIPE}/redox.patch"
|
|
|
|
${COOKBOOK_MAKE} -j ${COOKBOOK_MAKE_JOBS} install \
|
|
PREFIX="${COOKBOOK_STAGE}" \
|
|
BUILDMODE='static' \
|
|
TARGET_SYS='Redox' \
|
|
XCFLAGS='-DLUAJIT_SECURITY_MCODE=0' \
|
|
CROSS="${TARGET}-"
|
|
|
|
cd "${COOKBOOK_STAGE}"/bin && ln -s luajit-2.1.* luajit
|
|
"""
|