]> git.sur5r.net Git - u-boot/commitdiff
Don't pass any debug options directly to the assembler
authorHaavard Skinnemoen <hskinnemoen@atmel.com>
Thu, 26 Oct 2006 15:55:31 +0000 (17:55 +0200)
committerWolfgang Denk <wd@denx.de>
Fri, 27 Oct 2006 15:51:03 +0000 (17:51 +0200)
When passing the -g option to gcc, gcc automatically selects a
suitable --g<format> option to pass on to the assembler.
Thus, there's no point in forcing a specific debug option on the
assembler using the -Wa mechanism.

Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
config.mk

index 46e956f6d33408e94ab6684afca0542864fd5b65..f65d3ca48d280c0ca5717e408a9ccc783adb4cb7 100644 (file)
--- a/config.mk
+++ b/config.mk
@@ -169,7 +169,9 @@ CFLAGS := $(CPPFLAGS) -Wall -Wno-trigraphs
 endif
 endif
 
-AFLAGS_DEBUG := -Wa,-g
+# $(CPPFLAGS) sets -g, which causes gcc to pass a suitable -g<format>
+# option to the assembler.
+AFLAGS_DEBUG :=
 
 # turn jbsr into jsr for m68k
 ifeq ($(ARCH),m68k)