]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
tools/Makefile: fix HOSTCFLAGS with CROSS_BUILD_TOOLS
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Wed, 1 May 2019 13:08:25 +0000 (15:08 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 3 May 2019 11:30:31 +0000 (07:30 -0400)
When CROSS_BUILD_TOOLS is set, set HOSTCFLAGS to CFLAGS otherwise CC
will be used with HOSTCFLAGS which seems wrong

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
tools/Makefile

index 12a3027e234e819ec7c01f75d51396abc101d702..eadeba417dcb33fac788ed0e1891c146f4176773 100644 (file)
@@ -272,6 +272,7 @@ subdir- += env
 
 ifneq ($(CROSS_BUILD_TOOLS),)
 override HOSTCC = $(CC)
+override HOSTCFLAGS = $(CFLAGS)
 
 quiet_cmd_crosstools_strip = STRIP   $^
       cmd_crosstools_strip = $(STRIP) $^; touch $@