From a403707b57df38c60de8e0f71d968164291542dc Mon Sep 17 00:00:00 2001 From: Anari Jalakas Date: Mon, 11 Nov 2024 21:06:08 +0200 Subject: [PATCH] luci-lua-runtime: fix build error with LTO Adding $(FPIC) parameter fixes building with CONFIG_USE_LTO enabled. Signed-off-by: Anari Jalakas --- modules/luci-lua-runtime/src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/luci-lua-runtime/src/Makefile b/modules/luci-lua-runtime/src/Makefile index dcce33dc8c..9dbaff4ee0 100644 --- a/modules/luci-lua-runtime/src/Makefile +++ b/modules/luci-lua-runtime/src/Makefile @@ -13,7 +13,7 @@ clean: rm -f contrib/lemon parser.so plural_formula.c plural_formula.h *.o parser.so: template_parser.o template_utils.o template_lmo.o template_lualib.o plural_formula.o - $(CC) $(LDFLAGS) -shared -o $@ $^ + $(CC) $(LDFLAGS) $(FPIC) -shared -o $@ $^ version.lua: ./mkversion.sh $@ $(LUCI_VERSION) "$(LUCI_GITBRANCH)" -- 2.30.2