projects
/
project
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82bde8c
)
luci-lib-jsonc: fix build error with LTO
author
Anari Jalakas
<anari.jalakas@gmail.com>
Mon, 11 Nov 2024 19:03:50 +0000
(21:03 +0200)
committer
Paul Donald
<newtwen+github@gmail.com>
Sun, 17 Nov 2024 22:23:42 +0000
(23:23 +0100)
Adding $(FPIC) parameter fixes building with CONFIG_USE_LTO enabled.
Signed-off-by: Anari Jalakas <anari.jalakas@gmail.com>
libs/luci-lib-jsonc/src/Makefile
patch
|
blob
|
history
diff --git
a/libs/luci-lib-jsonc/src/Makefile
b/libs/luci-lib-jsonc/src/Makefile
index e15fbac382bd005605ee56dd66ec3499cdddd998..f79423d1ff660299ff7f60bba88fa2d65db58e35 100644
(file)
--- 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