Append CFLAGS and HOSTCFLAGS to environment
authorLoïMinier <loic.minier@linaro.org>
Mon, 14 Mar 2011 07:31:57 +0000 (13:01 +0530)
committerAnand Gadiyar <gadiyar@ti.com>
Mon, 14 Mar 2011 08:22:28 +0000 (13:52 +0530)
Signed-off-by: LoïMinier <loic.minier@linaro.org>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
config.mk

index 80bc0ad..2edea06 100644 (file)
--- a/config.mk
+++ b/config.mk
@@ -95,7 +95,7 @@ HOSTCC                = cc
 else
 HOSTCC         = gcc
 endif
-HOSTCFLAGS     = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
+HOSTCFLAGS     += -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
 HOSTSTRIP      = strip
 
 #########################################################################
@@ -143,10 +143,10 @@ CPPFLAGS += -fno-builtin -ffreestanding -nostdinc      \
        -isystem $(gccincdir) -pipe $(PLATFORM_CPPFLAGS)
 
 ifdef BUILD_TAG
-CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes \
+CFLAGS += $(CPPFLAGS) -Wall -Wstrict-prototypes \
        -DBUILD_TAG='"$(BUILD_TAG)"'
 else
-CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes
+CFLAGS += $(CPPFLAGS) -Wall -Wstrict-prototypes
 endif
 ifeq ($(ARCH),arm)
 CFLAGS += -marm -fno-stack-protector