[LEDE-DEV] [PATCH iwinfo] Makefile: explictly link with all shared libraries

Florian Fainelli f.fainelli at gmail.com
Mon Jul 11 14:05:27 PDT 2016


linking with libuci means we need to link with libblobmsg_json, libjson-c and
libubox. Sinc e we do not use pkg-config or something equivalent, we need to
specify all dependencies.

Signed-off-by: Florian Fainelli <f.fainelli at gmail.com>
---
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index 60341f7..21cfe9c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 IWINFO_BACKENDS    = $(BACKENDS)
 IWINFO_CFLAGS      = $(CFLAGS) -std=gnu99 -fstrict-aliasing -Iinclude
-IWINFO_LDFLAGS     = -luci
+IWINFO_LDFLAGS     = -luci -lblobmsg_json -ljson-c -lubox
 
 IWINFO_LIB         = libiwinfo.so
 IWINFO_LIB_LDFLAGS = $(LDFLAGS) -shared
-- 
1.7.1




More information about the Lede-dev mailing list