From: Anari Jalakas Date: Mon, 11 Nov 2024 19:06:08 +0000 (+0200) Subject: luci-lua-runtime: fix build error with LTO X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a403707b57df38c60de8e0f71d968164291542dc;p=project%2Fluci.git luci-lua-runtime: fix build error with LTO Adding $(FPIC) parameter fixes building with CONFIG_USE_LTO enabled. Signed-off-by: Anari Jalakas --- 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)"