aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2013-07-05 11:33:26 +0100
committerMatt Fleming <matt.fleming@intel.com>2013-07-05 13:05:16 +0100
commitbbd9262c2323c1df461f18fcfa2aed56cd2411ce (patch)
tree8443f2c3db44c833b9e5b9feefbb59aa7c686861
parent00d0f3add99de6d9c83ff2492bac175a5e1b8a11 (diff)
downloadsyslinux-bbd9262c2323c1df461f18fcfa2aed56cd2411ce.tar.gz
syslinux-bbd9262c2323c1df461f18fcfa2aed56cd2411ce.tar.xz
syslinux-bbd9262c2323c1df461f18fcfa2aed56cd2411ce.zip
mk: include $(GCCWARN) when building ELF objects
It's currently impossible to turn on dprintf() statements in com32/modules because $(GCCWARN) isn't used as part of $(CFLAGS). Signed-off-by: Matt Fleming <matt.fleming@intel.com>
-rw-r--r--com32/modules/prdhcp.c4
-rw-r--r--mk/elf.mk2
2 files changed, 3 insertions, 3 deletions
diff --git a/com32/modules/prdhcp.c b/com32/modules/prdhcp.c
index e1785a03..4ae295e8 100644
--- a/com32/modules/prdhcp.c
+++ b/com32/modules/prdhcp.c
@@ -39,11 +39,11 @@
#include <unistd.h>
#include <getkey.h>
-#define DEBUG 0
+#define PRDHCP_DEBUG 0
#define dprintf0(f, ...) ((void)0)
-#ifdef DEBUG
+#ifdef PRDHCP_DEBUG
# define dpressanykey pressanykey
# define dprintf printf
# define dprint_pxe_bootp_t print_pxe_bootp_t
diff --git a/mk/elf.mk b/mk/elf.mk
index 109e0a65..8bc6be08 100644
--- a/mk/elf.mk
+++ b/mk/elf.mk
@@ -42,7 +42,7 @@ GPLLIB =
GPLINCLUDE =
endif
-CFLAGS = $(GCCOPT) -W -Wall -march=i386 \
+CFLAGS = $(GCCOPT) $(GCCWARN) -W -Wall -march=i386 \
-fomit-frame-pointer -D__COM32__ -DDYNAMIC_MODULE \
-nostdinc -iwithprefix include \
-I$(com32)/libutil/include -I$(com32)/include $(GPLINCLUDE) \