xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tools: remove duplicate -g from CFLAGS
@ 2014-07-28 10:38 Olaf Hering
  2014-08-21 22:48 ` Ian Campbell
  0 siblings, 1 reply; 2+ messages in thread
From: Olaf Hering @ 2014-07-28 10:38 UTC (permalink / raw)
  To: xen-devel
  Cc: Olaf Hering, Ian Campbell, Stefano Stabellini, Ian Jackson,
	Tim Deegan, Andres Lagar-Cavilla, Daniel De Graaf

CFLAGS+=-g is already provided by Config.mk.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
---
 tools/blktap2/drivers/Makefile | 2 +-
 tools/blktap2/vhd/lib/Makefile | 1 -
 tools/flask/utils/Makefile     | 2 +-
 tools/libxc/Makefile           | 2 +-
 tools/memshr/Makefile          | 1 -
 tools/xenpaging/Makefile       | 1 -
 6 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/tools/blktap2/drivers/Makefile b/tools/blktap2/drivers/Makefile
index 1129ca1..37c3485 100644
--- a/tools/blktap2/drivers/Makefile
+++ b/tools/blktap2/drivers/Makefile
@@ -9,7 +9,7 @@ QCOW_UTIL  = img2qcow qcow-create qcow2raw
 LOCK_UTIL  = lock-util
 INST_DIR   = $(SBINDIR)
 
-CFLAGS    += -Werror -g
+CFLAGS    += -Werror
 CFLAGS    += -Wno-unused
 CFLAGS    += -fno-strict-aliasing
 CFLAGS    += -I$(BLKTAP_ROOT)/include -I$(BLKTAP_ROOT)/drivers
diff --git a/tools/blktap2/vhd/lib/Makefile b/tools/blktap2/vhd/lib/Makefile
index cdbb86c..99e3cdb 100644
--- a/tools/blktap2/vhd/lib/Makefile
+++ b/tools/blktap2/vhd/lib/Makefile
@@ -17,7 +17,6 @@ CFLAGS          += -Wno-unused
 CFLAGS          += -I../../include
 CFLAGS          += -D_GNU_SOURCE
 CFLAGS          += -fPIC
-CFLAGS          += -g
 
 ifeq ($(CONFIG_Linux),y)
 LIBS            := -luuid
diff --git a/tools/flask/utils/Makefile b/tools/flask/utils/Makefile
index 458f9aa..dfeb8f7 100644
--- a/tools/flask/utils/Makefile
+++ b/tools/flask/utils/Makefile
@@ -1,7 +1,7 @@
 XEN_ROOT=$(CURDIR)/../../..
 include $(XEN_ROOT)/tools/Rules.mk
 
-CFLAGS += -Wall -g -Werror
+CFLAGS += -Wall -Werror
 CFLAGS += $(CFLAGS_libxenctrl)
 
 TESTDIR  = testsuite/tmp
diff --git a/tools/libxc/Makefile b/tools/libxc/Makefile
index 741053e..3c390f8 100644
--- a/tools/libxc/Makefile
+++ b/tools/libxc/Makefile
@@ -214,7 +214,7 @@ libxenguest.so.$(MAJOR).$(MINOR): $(GUEST_PIC_OBJS) libxenctrl.so
 	$(CC) $(LDFLAGS) -Wl,$(SONAME_LDFLAG) -Wl,libxenguest.so.$(MAJOR) $(SHLIB_LDFLAGS) -o $@ $(GUEST_PIC_OBJS) $(COMPRESSION_LIBS) -lz $(LDLIBS_libxenctrl) $(PTHREAD_LIBS) $(APPEND_LDFLAGS)
 
 xenctrl_osdep_ENOSYS.so: $(OSDEP_PIC_OBJS) libxenctrl.so
-	$(CC) -g $(LDFLAGS) $(SHLIB_LDFLAGS) -o $@ $(OSDEP_PIC_OBJS) $(LDLIBS_libxenctrl) $(APPEND_LDFLAGS)
+	$(CC) $(LDFLAGS) $(SHLIB_LDFLAGS) -o $@ $(OSDEP_PIC_OBJS) $(LDLIBS_libxenctrl) $(APPEND_LDFLAGS)
 
 -include $(DEPS)
 
diff --git a/tools/memshr/Makefile b/tools/memshr/Makefile
index a2d6b00..2c34f96 100644
--- a/tools/memshr/Makefile
+++ b/tools/memshr/Makefile
@@ -9,7 +9,6 @@ CFLAGS          += $(CFLAGS_xeninclude)
 CFLAGS          += $(CFLAGS_libxenctrl)
 CFLAGS          += -D_GNU_SOURCE
 CFLAGS          += -fPIC
-CFLAGS          += -g
 
 LIB-SRCS        := interface.c
 LIB-SRCS        += shm.c
diff --git a/tools/xenpaging/Makefile b/tools/xenpaging/Makefile
index 548d9dd..4ff3375 100644
--- a/tools/xenpaging/Makefile
+++ b/tools/xenpaging/Makefile
@@ -13,7 +13,6 @@ SRCS     += pagein.c
 
 CFLAGS   += -Werror
 CFLAGS   += -Wno-unused
-CFLAGS   += -g
 
 OBJS     = $(SRCS:.c=.o)
 IBINS    = xenpaging

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] tools: remove duplicate -g from CFLAGS
  2014-07-28 10:38 [PATCH] tools: remove duplicate -g from CFLAGS Olaf Hering
@ 2014-08-21 22:48 ` Ian Campbell
  0 siblings, 0 replies; 2+ messages in thread
From: Ian Campbell @ 2014-08-21 22:48 UTC (permalink / raw)
  To: Olaf Hering
  Cc: Stefano Stabellini, Ian Jackson, Tim Deegan, xen-devel,
	Andres Lagar-Cavilla, Daniel De Graaf

On Mon, 2014-07-28 at 12:38 +0200, Olaf Hering wrote:
> CFLAGS+=-g is already provided by Config.mk.
> 
> Signed-off-by: Olaf Hering <olaf@aepfle.de>

Acked + applied this and the similar -Wall patch. Thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-08-21 22:48 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-28 10:38 [PATCH] tools: remove duplicate -g from CFLAGS Olaf Hering
2014-08-21 22:48 ` Ian Campbell

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).