diff options
author | Fabrice Fontaine <fontaine.fabrice@gmail.com> | 2019-05-01 15:08:25 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-05-03 07:30:31 -0400 |
commit | 72c69ea8d603fd2448dd1d7c399c4f77b77773b7 (patch) | |
tree | 5463693ab526f81d0cce779c136704da9ac9d8ef /tools | |
parent | d66f4fe982719c883e65035a3beb8dc89ea045c8 (diff) | |
download | u-boot-72c69ea8d603fd2448dd1d7c399c4f77b77773b7.tar.gz |
tools/Makefile: fix HOSTCFLAGS with CROSS_BUILD_TOOLS
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>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/Makefile b/tools/Makefile index 12a3027e23..eadeba417d 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -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 $@ |