Skip to content

Commit

Permalink
luci-lua-runtime: fix build error with LTO
Browse files Browse the repository at this point in the history
Adding $(FPIC) parameter fixes building with CONFIG_USE_LTO enabled.

Signed-off-by: Anari Jalakas <[email protected]>
  • Loading branch information
Jalakas authored and systemcrash committed Nov 17, 2024
1 parent 44fbd00 commit a403707
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/luci-lua-runtime/src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down

0 comments on commit a403707

Please sign in to comment.