[syslinux:elflink] mk: include $(GCCWARN) when building ELF objects

syslinux-bot for Matt Fleming matt.fleming at intel.com
Fri Jul 5 05:57:04 PDT 2013


Commit-ID:  bbd9262c2323c1df461f18fcfa2aed56cd2411ce
Gitweb:     http://www.syslinux.org/commit/bbd9262c2323c1df461f18fcfa2aed56cd2411ce
Author:     Matt Fleming <matt.fleming at intel.com>
AuthorDate: Fri, 5 Jul 2013 11:33:26 +0100
Committer:  Matt Fleming <matt.fleming at intel.com>
CommitDate: Fri, 5 Jul 2013 13:05:16 +0100

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 at intel.com>

---
 com32/modules/prdhcp.c | 4 ++--
 mk/elf.mk              | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/com32/modules/prdhcp.c b/com32/modules/prdhcp.c
index e1785a0..4ae295e 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 109e0a6..8bc6be0 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) \


More information about the Syslinux-commits mailing list