mirror of
https://github.com/openwrt/luci
synced 2025-01-07 03:27:12 +08:00
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:
parent
44fbd008fb
commit
a403707b57
@ -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)"
|
||||
|
Loading…
Reference in New Issue
Block a user