Skip to contentSkip to conversation

tools/libxl: Fix build of libxl with ./configure --disable-blktap2

PATCH In review Andrew Cooper 2 participants 3 messages Aug 15, 2014 – Sep 8, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/libxl: Fix build of libxl with ./configure --disable-blktap2

Autoconf already has appropriate Linux/non-Linux logic for CONFIG_BLKTAP2.

Let LIBXL_BLKTAP inherit directly from CONFIG_BLKTAP2, rather than requiring a further LIBXL_BLKTAP=n in addition to ./configure --disable-blktap2 to get libxl to successfully link under Linux.

CC Ian Campbell <[email protected]>
CC Ian Jackson <[email protected]>
---
 tools/Rules.mk |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
tools/Rules.mk +1 -5
index 5bac700..fa59365 100644
@@ -55,11 +55,7 @@ CFLAGS_libxenvchan = -I$(XEN_LIBVCHAN)
 LDLIBS_libxenvchan = $(SHLIB_libxenctrl) $(SHLIB_libxenstore) -L$(XEN_LIBVCHAN) -lxenvchan
 SHLIB_libxenvchan  = -Wl,-rpath-link=$(XEN_LIBVCHAN)
 
-ifeq ($(CONFIG_Linux),y)
-LIBXL_BLKTAP ?= y
-else
-LIBXL_BLKTAP ?= n
-endif
+LIBXL_BLKTAP ?= $(CONFIG_BLKTAP2)
 
 ifeq ($(LIBXL_BLKTAP),y)
 CFLAGS_libblktapctl = -I$(XEN_BLKTAP2)/control -I$(XEN_BLKTAP2)/include $(CFLAGS_xeninclude)
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 9 lines · Andrew Cooper

Autoconf already has appropriate Linux/non-Linux logic for CONFIG_BLKTAP2.

Let LIBXL_BLKTAP inherit directly from CONFIG_BLKTAP2, rather than requiring a further LIBXL_BLKTAP=n in addition to ./configure --disable-blktap2 to get libxl to successfully link under Linux.

CC Ian Campbell <[email protected]>
CC Ian Jackson <[email protected]>

Ping?

Quoted 21 lines
---
 tools/Rules.mk |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
tools/Rules.mk +1 -5
index 5bac700..fa59365 100644
@@ -55,11 +55,7 @@ CFLAGS_libxenvchan = -I$(XEN_LIBVCHAN)
 LDLIBS_libxenvchan = $(SHLIB_libxenctrl) $(SHLIB_libxenstore) -L$(XEN_LIBVCHAN) -lxenvchan
 SHLIB_libxenvchan  = -Wl,-rpath-link=$(XEN_LIBVCHAN)
 
-ifeq ($(CONFIG_Linux),y)
-LIBXL_BLKTAP ?= y
-else
-LIBXL_BLKTAP ?= n
-endif
+LIBXL_BLKTAP ?= $(CONFIG_BLKTAP2)
 
 ifeq ($(LIBXL_BLKTAP),y)
 CFLAGS_libblktapctl = -I$(XEN_BLKTAP2)/control -I$(XEN_BLKTAP2)/include $(CFLAGS_xeninclude)
#2 lore raw
In reply to Andrew Cooper
Quoted 9 lines · Andrew Cooper

Autoconf already has appropriate Linux/non-Linux logic for CONFIG_BLKTAP2.

Let LIBXL_BLKTAP inherit directly from CONFIG_BLKTAP2, rather than requiring a further LIBXL_BLKTAP=n in addition to ./configure --disable-blktap2 to get libxl to successfully link under Linux.

CC Ian Campbell <[email protected]>
CC Ian Jackson <[email protected]>

Acked + applied.