qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [COMMIT 4a24470] Disable _FORTIFY_SOURCE to fix Ubuntu bu


From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT 4a24470] Disable _FORTIFY_SOURCE to fix Ubuntu build with-Werror
Date: Mon, 22 Jun 2009 15:51:02 -0000

From: Anthony Liguori <address@hidden>

This eliminates the results unused warnings.

Signed-off-by: Anthony Liguori <address@hidden>

diff --git a/Makefile b/Makefile
index dabf322..a19950c 100644
--- a/Makefile
+++ b/Makefile
@@ -22,6 +22,7 @@ LDFLAGS += $(OS_LDFLAGS) $(ARCH_LDFLAGS)
 
 CPPFLAGS += -I. -I$(SRC_PATH) -MMD -MP -MT $@
 CPPFLAGS += -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
+CPPFLAGS += -U_FORTIFY_SOURCE
 LIBS=
 ifdef CONFIG_STATIC
 LDFLAGS += -static
diff --git a/Makefile.target b/Makefile.target
index 0159bf7..a0f24fa 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -111,6 +111,7 @@ CFLAGS+=$(OS_CFLAGS) $(ARCH_CFLAGS)
 LDFLAGS+=$(OS_LDFLAGS) $(ARCH_LDFLAGS)
 
 CPPFLAGS+=-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
+CPPFLAGS+=-U_FORTIFY_SOURCE
 LIBS+=-lm
 ifdef CONFIG_WIN32
 LIBS+=-lwinmm -lws2_32 -liphlpapi




reply via email to

[Prev in Thread] Current Thread [Next in Thread]