]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
luajit: Ensure this package is being built with SSP
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 9 Mar 2023 11:15:15 +0000 (11:15 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 9 Mar 2023 11:15:15 +0000 (11:15 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
luajit/luajit.nm

index ac94acd63a1ff5f83b8fbcc0e1442d3943044d20..c963efe708075ecda4ba7277078eb815bcee6f72 100644 (file)
@@ -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