libxlu: avoid linker warnings
PATCH 1/1 libxlu: avoid linker warnings
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.
tools/Rules.mk +1 -1
@@ -40,7 +40,7 @@ SHLIB_libxenctrl = -Wl,-rpath-link=$(XE 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)
tools/libxl/Makefile +1 -1
@@ -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)
libxlu: avoid linker warnings
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.
tools/Rules.mk +1 -1
@@ -40,7 +40,7 @@ SHLIB_libxenctrl = -Wl,-rpath-link=$(XE 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)
tools/libxl/Makefile +1 -1
@@ -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)
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 13 lines · Jan Beulich
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 <[email protected]>
tools/Rules.mk SHLIB_libxenctrl = -Wl,-rpath-link=$(XE · line 43
Quoted 5 lines
tools/Rules.mk +1
-1@@ -40,7 +40,7 @@ SHLIB_libxenctrl = -Wl,-rpath-link=$(XE 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)
Heh, I wonder how this ever worked, but it turns out SHLIB_libxenguest is not used in tree.
tools/libxl/Makefile LDFLAGS += $(PTHREAD_LDFLAGS) · line 45
Quoted 12 lines
tools/Rules.mk +0
-0CFLAGS_libxenstore = -I$(XEN_XENSTORE)/include $(CFLAGS_xeninclude) LDLIBS_libxenstore = $(XEN_XENSTORE)/libxenstore$(libextension)tools/libxl/Makefile +1
-1@@ -41,7 +41,7 @@ LDFLAGS += $(PTHREAD_LDFLAGS) LIBXL_LIBS += $(PTHREAD_LIBS) LIBXL_LIBS += $(LIBXL_LIBS-y) -LIBXLU_LIBS = libxenlight.so +LIBXLU_LIBS = $(LDLIBS_libxenlight)
This looks correct to me.
Quoted 7 lines · Jan Beulich
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.
Looks like I (unwittingly) fixed this aspect in
http://lists.xen.org/archives/html/xen-devel/2015-10/msg02256.html
too. I can easily rebase.
Since you have a pickier ld than me I wonder if you would mind trying my patch out on top of yours too?
Quoted 1 line
Signed-off-by Jan Beulich <[email protected]>
Quoted 25 lines
tools/Rules.mk +1
-1@@ -40,7 +40,7 @@ SHLIB_libxenctrl = -Wl,-rpath-link=$(XE 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)tools/libxl/Makefile +1
-1@@ -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)
Quoted 10 lines · Ian Campbell
Quoted 7 lines · Jan Beulich
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.Looks like I (unwittingly) fixed this aspect in
Actually, no I didn't.
Quoted 2 lines
http://lists.xen.org/archives/html/xen-devel/2015-10/msg02256.html
too. I can easily rebase.
easily rebase> that remains the case.
Quoted 10 lines
Quoted 1 line
Quoted 1 line · On 02.11.15 at 15:01, <[email protected]> wrote:
Quoted 7 lines · Jan Beulich
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.
Quoted 7 lines
Looks like I (unwittingly) fixed this aspect in
http://lists.xen.org/archives/html/xen-devel/2015-10/msg02256.html
too. I can easily rebase.Since you have a pickier ld than me I wonder if you would mind trying my patch out on top of yours too?
No warnings.
Jan
Quoted 13 lines · Jan Beulich
Quoted 13 lines
Quoted 1 line
Quoted 1 line · On 02.11.15 at 15:01, <[email protected]> wrote:
Quoted 8 lines · Jan Beulich
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 inSHLIB_libxenguest, which gets removed at once.Looks like I (unwittingly) fixed this aspect in
Quoted 8 lines
Quoted 6 lines
http://lists.xen.org/archives/html/xen-devel/2015-10/msg02256.html
too. I can easily rebase.Since you have a pickier ld than me I wonder if you would mind trying my
patch out on top of yours too?No warnings.
Thanks!
Quoted 3 lines
Jan