From: Peter Große Date: Mon, 12 Jun 2017 23:05:21 +0000 (+0200) Subject: tools/xenstat: fix missing linkage of libxenstat against libyajl X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~2047 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a7307762f90d337585d17d45551a226028b89836;p=xen.git tools/xenstat: fix missing linkage of libxenstat against libyajl This fixes the python bindings, since symbols were missing in libxenstat. xentop doesn't use any yajl functions, so drop linking libyajl. Signed-off-by: Peter Große Acked-by: Wei Liu --- diff --git a/tools/xenstat/libxenstat/Makefile b/tools/xenstat/libxenstat/Makefile index 08b0f35172..9d6649d466 100644 --- a/tools/xenstat/libxenstat/Makefile +++ b/tools/xenstat/libxenstat/Makefile @@ -34,7 +34,7 @@ SONAME_FLAGS=-Wl,$(SONAME_LDFLAG) -Wl,libxenstat.so.$(MAJOR) CFLAGS+=-fPIC CFLAGS+=-Isrc $(CFLAGS_libxenctrl) $(CFLAGS_libxenstore) $(CFLAGS_xeninclude) -include $(XEN_ROOT)/tools/config.h -LDLIBS-y = $(LDLIBS_libxenstore) $(LDLIBS_libxenctrl) +LDLIBS-y = $(LDLIBS_libxenstore) $(LDLIBS_libxenctrl) -lyajl LDLIBS-$(CONFIG_SunOS) += -lkstat PKG_CONFIG := xenstat.pc diff --git a/tools/xenstat/xentop/Makefile b/tools/xenstat/xentop/Makefile index 1cc393f457..2275ccda8e 100644 --- a/tools/xenstat/xentop/Makefile +++ b/tools/xenstat/xentop/Makefile @@ -19,7 +19,7 @@ all install xentop: else CFLAGS += -DGCC_PRINTF -Werror $(CFLAGS_libxenstat) -LDLIBS += $(LDLIBS_libxenstat) $(CURSES_LIBS) $(TINFO_LIBS) $(SOCKET_LIBS) -lm -lyajl +LDLIBS += $(LDLIBS_libxenstat) $(CURSES_LIBS) $(TINFO_LIBS) $(SOCKET_LIBS) -lm CFLAGS += -DHOST_$(XEN_OS) # Include configure output (config.h)