Skip to content
Snippets Groups Projects
Commit f98fe28a authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Merge branch 'luajit' into 'master'

LuaJIT dynamic recipe

See merge request !453
parents 9c54dacd f84c756c
No related branches found
No related tags found
1 merge request!453LuaJIT dynamic recipe
#TODO remove -DLUAJIT_SECURITY_MCODE=0
[source]
# LuaJIT is only available as a rolling release
git = "https://luajit.org/git/luajit.git"
rev = "2090842410e0ba6f81fad310a77bf5432488249a"
rev = "a4f56a459a588ae768801074b46ba0adcfb49eb1"
patches = ["redox.patch"]
[build]
template = "custom"
script = """
rsync -av --delete "${COOKBOOK_SOURCE}/" ./
DYNAMIC_INIT
# 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"
rsync -av --delete "${COOKBOOK_SOURCE}/" ./
${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
"""
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment