From: Michael Tremer Date: Thu, 9 Mar 2023 11:15:15 +0000 (+0000) Subject: luajit: Ensure this package is being built with SSP X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e22cda58e51721fd2d0248f05528d68734f1d6d1;p=people%2Fstevee%2Fipfire-3.x.git luajit: Ensure this package is being built with SSP Signed-off-by: Michael Tremer --- diff --git a/luajit/luajit.nm b/luajit/luajit.nm index ac94acd63..c963efe70 100644 --- a/luajit/luajit.nm +++ b/luajit/luajit.nm @@ -5,7 +5,7 @@ name = luajit version = 2.1.0 -release = 0.1-beta3-%{commit} +release = 0.2-beta3-%{commit} thisapp = luajit-2.0-%{commit} # LuaJIT no longer tags releases: @@ -27,8 +27,14 @@ source_dl = https://repo.or.cz/luajit-2.0.git/snapshot/ sources = %{commit}.tar.gz build + prepare_cmds + # Do not disable stack protection + sed -e "s/-fno-stack-protector//" -i src/Makefile + end + build - make amalg PREFIX="%{prefix}" BUILDMODE=dynamic TARGET_STRIP=" @:" + make amalg PREFIX="%{prefix}" BUILDMODE=dynamic Q= TARGET_STRIP=" @:" \ + CFLAGS="%{CFLAGS}" LDFLAGS="%{LDFLAGS}" %{PARALLELISMFLAGS} end install