* [PATCH] tools/blktap: reorder MEMSHR_DIR to fix CFLAGS
@ 2012-03-14 16:03 Olaf Hering
2012-04-03 17:19 ` Ian Jackson
0 siblings, 1 reply; 2+ messages in thread
From: Olaf Hering @ 2012-03-14 16:03 UTC (permalink / raw)
To: xen-devel
# HG changeset patch
# User Olaf Hering <olaf@aepfle.de>
# Date 1331740943 -3600
# Node ID 43d9bd95f981259776cb6e3ea7fd7c536fa89135
# Parent 773d0367087212c43faf8cdcc21cf443b1ea0046
tools/blktap: reorder MEMSHR_DIR to fix CFLAGS
In blktap2 MEMSHR_DIR is used before it is set. This removes the
required -D_GNU_SOURCE from CFLAGS, its used as option for -I
Fix this by moving memshr related flags to the place where its actually
used.
The failure is a missing O_DIRECT define.
Signed-off-by: Olaf Hering <olaf@aepfle.de>
diff -r 773d03670872 -r 43d9bd95f981 tools/blktap/drivers/Makefile
--- a/tools/blktap/drivers/Makefile
+++ b/tools/blktap/drivers/Makefile
@@ -3,14 +3,12 @@ include $(XEN_ROOT)/tools/Rules.mk
IBIN = blktapctrl tapdisk
QCOW_UTIL = img2qcow qcow2raw qcow-create
-MEMSHR_DIR = ../../memshr
CFLAGS += -Werror
CFLAGS += -Wno-unused
CFLAGS += -I../lib
CFLAGS += $(CFLAGS_libxenctrl)
CFLAGS += $(CFLAGS_libxenstore)
-CFLAGS += -I $(MEMSHR_DIR)
CFLAGS += -D_GNU_SOURCE
ifeq ($CONFIG_GCRYPT,y)
@@ -23,7 +21,9 @@ endif
MEMSHRLIBS :=
ifeq ($(CONFIG_Linux), y)
+MEMSHR_DIR = ../../memshr
CFLAGS += -DMEMSHR
+CFLAGS += -I $(MEMSHR_DIR)
MEMSHRLIBS += $(MEMSHR_DIR)/libmemshr.a
endif
diff -r 773d03670872 -r 43d9bd95f981 tools/blktap2/drivers/Makefile
--- a/tools/blktap2/drivers/Makefile
+++ b/tools/blktap2/drivers/Makefile
@@ -14,7 +14,6 @@ CFLAGS += -Wno-unused
CFLAGS += -fno-strict-aliasing
CFLAGS += -I$(BLKTAP_ROOT)/include -I$(BLKTAP_ROOT)/drivers
CFLAGS += $(CFLAGS_libxenctrl)
-CFLAGS += -I $(MEMSHR_DIR)
CFLAGS += -D_GNU_SOURCE
CFLAGS += -DUSE_NFS_LOCKS
@@ -38,11 +37,11 @@ else
tapdisk2 tapdisk-stream tapdisk-diff $(QCOW_UTIL): AIOLIBS := -laio
endif
-MEMSHR_DIR = $(XEN_ROOT)/tools/memshr
-
MEMSHRLIBS :=
ifeq ($(CONFIG_Linux), __fixme__)
+MEMSHR_DIR = $(XEN_ROOT)/tools/memshr
CFLAGS += -DMEMSHR
+CFLAGS += -I $(MEMSHR_DIR)
MEMSHRLIBS += -L$(XEN_ROOT)/tools/libxc -lxenctrl $(MEMSHR_DIR)/libmemshr.a
endif
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] tools/blktap: reorder MEMSHR_DIR to fix CFLAGS
2012-03-14 16:03 [PATCH] tools/blktap: reorder MEMSHR_DIR to fix CFLAGS Olaf Hering
@ 2012-04-03 17:19 ` Ian Jackson
0 siblings, 0 replies; 2+ messages in thread
From: Ian Jackson @ 2012-04-03 17:19 UTC (permalink / raw)
To: Olaf Hering; +Cc: xen-devel
Olaf Hering writes ("[Xen-devel] [PATCH] tools/blktap: reorder MEMSHR_DIR to fix CFLAGS"):
> tools/blktap: reorder MEMSHR_DIR to fix CFLAGS
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-04-03 17:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-14 16:03 [PATCH] tools/blktap: reorder MEMSHR_DIR to fix CFLAGS Olaf Hering
2012-04-03 17:19 ` Ian Jackson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).