From 72c69ea8d603fd2448dd1d7c399c4f77b77773b7 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Wed, 1 May 2019 15:08:25 +0200 Subject: 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 --- tools/Makefile | 1 + 1 file changed, 1 insertion(+) (limited to 'tools') 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 $@ -- cgit v1.2.3