]> git.hungrycats.org Git - linux/commitdiff
kbuild: Do not duplicate A/CFLAGS
authorSam Ravnborg <sam@mars.ravnborg.org>
Sat, 6 Sep 2003 23:04:12 +0000 (01:04 +0200)
committerSam Ravnborg <sam@mars.ravnborg.org>
Sat, 6 Sep 2003 23:04:12 +0000 (01:04 +0200)
This solves 1193 in bugme as reported by ak@suse.de
AFLAGS and CFLAGS contained duplicate entries, both generic and
architecture specific flags

Makefile

index 72ac347919327b0d67fb52bc7738b7a4fa8a7ac2..8e2f58cea2e4e414e0ae1fd2d91def3340bab4a8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -344,8 +344,8 @@ endif
 include arch/$(ARCH)/Makefile
 
 # Let architecture Makefiles change CPPFLAGS if needed
-CFLAGS += $(CPPFLAGS) $(CFLAGS)
-AFLAGS += $(CPPFLAGS) $(AFLAGS)
+CFLAGS := $(CPPFLAGS) $(CFLAGS)
+AFLAGS := $(CPPFLAGS) $(AFLAGS)
 
 core-y         += kernel/ mm/ fs/ ipc/ security/ crypto/