luci-lua-runtime: fix build error with LTO

Adding $(FPIC) parameter fixes building with CONFIG_USE_LTO enabled.

Signed-off-by: Anari Jalakas <anari.jalakas@gmail.com>
This commit is contained in:
Anari Jalakas 2024-11-11 21:06:08 +02:00 committed by Paul Donald
parent 44fbd008fb
commit a403707b57

View File

@ -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)"