]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commitdiff
libxlu: avoid linker warnings
authorJan Beulich <jbeulich@suse.com>
Mon, 2 Nov 2015 14:28:33 +0000 (15:28 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 2 Nov 2015 14:28:33 +0000 (15:28 +0100)
Recent ld warns about libxenlight.so's dependency libraries not being
available, which can be easily avoided by not just passing the raw
library name on ld's command line.

In the course of checking how things fit together (I originally
suspected the warning to come from the linking of xl) I also noticed a
stray L in SHLIB_libxenguest, which gets removed at once.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/Rules.mk
tools/libxl/Makefile

index 2c422bde9bc64ee833dcef01f86e579784e3885b..ffa5fd3e23979b080d3a814dc62a6fec43d3c27e 100644 (file)
@@ -40,7 +40,7 @@ SHLIB_libxenctrl  = -Wl,-rpath-link=$(XEN_LIBXC)
 
 CFLAGS_libxenguest = -I$(XEN_LIBXC)/include $(CFLAGS_xeninclude)
 LDLIBS_libxenguest = $(XEN_LIBXC)/libxenguest$(libextension)
-SHLIB_libxenguest  = -Wl,-rpath-link=L$(XEN_LIBXC)
+SHLIB_libxenguest  = -Wl,-rpath-link=$(XEN_LIBXC)
 
 CFLAGS_libxenstore = -I$(XEN_XENSTORE)/include $(CFLAGS_xeninclude)
 LDLIBS_libxenstore = $(XEN_XENSTORE)/libxenstore$(libextension)
index c5ecec12932618dbab0ad96aea116145ff02b656..6ff5beee8a35c80ef75bc0c7529cde93aabdf62f 100644 (file)
@@ -41,7 +41,7 @@ LDFLAGS += $(PTHREAD_LDFLAGS)
 LIBXL_LIBS += $(PTHREAD_LIBS)
 LIBXL_LIBS += $(LIBXL_LIBS-y)
 
-LIBXLU_LIBS = libxenlight.so
+LIBXLU_LIBS = $(LDLIBS_libxenlight)
 
 LIBXL_OBJS-y = osdeps.o libxl_paths.o libxl_bootloader.o flexarray.o
 ifeq ($(LIBXL_BLKTAP),y)