From: Anari Jalakas Date: Mon, 11 Nov 2024 19:03:50 +0000 (+0200) Subject: luci-lib-jsonc: fix build error with LTO X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5de203082ffad31ba70e2d332e4ee3495ec58b30;p=project%2Fluci.git luci-lib-jsonc: fix build error with LTO Adding $(FPIC) parameter fixes building with CONFIG_USE_LTO enabled. Signed-off-by: Anari Jalakas --- diff --git a/libs/luci-lib-jsonc/src/Makefile b/libs/luci-lib-jsonc/src/Makefile index e15fbac382..f79423d1ff 100644 --- a/libs/luci-lib-jsonc/src/Makefile +++ b/libs/luci-lib-jsonc/src/Makefile @@ -7,7 +7,7 @@ JSONC_LIB = jsonc.so $(CC) $(CPPFLAGS) $(CFLAGS) $(LUA_CFLAGS) $(JSONC_CFLAGS) $(FPIC) -c -o $@ $< compile: $(JSONC_OBJ) - $(CC) $(LDFLAGS) -shared -o $(JSONC_LIB) $(JSONC_OBJ) $(JSONC_LDFLAGS) + $(CC) $(LDFLAGS) -shared -o $(JSONC_LIB) $(JSONC_OBJ) $(JSONC_LDFLAGS) $(FPIC) install: compile mkdir -p $(DESTDIR)/usr/lib/lua/luci