aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2009-06-17 14:27:09 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2009-06-22 10:10:50 -0500
commit4a24470497360d8b77568b83008d0e9d6eb0787d (patch)
tree912f68c99b78d7be107f0ca33b99b4d4cd21eb52
parentd2e9fd8f703203c2eeeed120b1ef6c3a6574e0ab (diff)
Disable _FORTIFY_SOURCE to fix Ubuntu build with -Werror
This eliminates the results unused warnings. Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r--Makefile1
-rw-r--r--Makefile.target1
2 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index dabf3220d5..a19950c1c0 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 0159bf7a00..a0f24fa2eb 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