diff options
author | Anthony Liguori <aliguori@us.ibm.com> | 2009-06-17 14:27:09 -0500 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-06-22 10:10:50 -0500 |
commit | 4a24470497360d8b77568b83008d0e9d6eb0787d (patch) | |
tree | 912f68c99b78d7be107f0ca33b99b4d4cd21eb52 | |
parent | d2e9fd8f703203c2eeeed120b1ef6c3a6574e0ab (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-- | Makefile | 1 | ||||
-rw-r--r-- | Makefile.target | 1 |
2 files changed, 2 insertions, 0 deletions
@@ -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 0159bf7a0..a0f24fa2e 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 |