summaryrefslogtreecommitdiffhomepage
path: root/libs/luci-lib-jsonc
diff options
context:
space:
mode:
authorAnari Jalakas <anari.jalakas@gmail.com>2024-11-11 21:03:50 +0200
committerPaul Donald <newtwen+github@gmail.com>2024-11-17 23:23:42 +0100
commit5de203082ffad31ba70e2d332e4ee3495ec58b30 (patch)
tree5c43173cba905913eaf7ed6f56346874d3bbb451 /libs/luci-lib-jsonc
parent82bde8c42db177d6069459f641c74c1ab1fc745f (diff)
luci-lib-jsonc: fix build error with LTO
Adding $(FPIC) parameter fixes building with CONFIG_USE_LTO enabled. Signed-off-by: Anari Jalakas <anari.jalakas@gmail.com>
Diffstat (limited to 'libs/luci-lib-jsonc')
-rw-r--r--libs/luci-lib-jsonc/src/Makefile2
1 files changed, 1 insertions, 1 deletions
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