From 5de203082ffad31ba70e2d332e4ee3495ec58b30 Mon Sep 17 00:00:00 2001 From: Anari Jalakas Date: Mon, 11 Nov 2024 21:03:50 +0200 Subject: [PATCH] luci-lib-jsonc: fix build error with LTO Adding $(FPIC) parameter fixes building with CONFIG_USE_LTO enabled. Signed-off-by: Anari Jalakas --- libs/luci-lib-jsonc/src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2