public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] tools: Makefile: improve cross_tools target usability
@ 2016-10-31 13:15 Stefan Müller-Klieser
  2016-10-31 13:27 ` Marek Vasut
  2016-11-05 17:41 ` Masahiro Yamada
  0 siblings, 2 replies; 4+ messages in thread
From: Stefan Müller-Klieser @ 2016-10-31 13:15 UTC (permalink / raw)
  To: u-boot

When building the cross_tools target, HOSTCFLAGS and HOSTLDFLAGS will
propagate to the target build. This should not happen and is easy to
prevent.

Signed-off-by: Stefan M?ller-Klieser <s.mueller-klieser@phytec.de>
---
 tools/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/Makefile b/tools/Makefile
index 400588c..305336c 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -263,6 +263,8 @@ subdir- += env
 
 ifneq ($(CROSS_BUILD_TOOLS),)
 HOSTCC = $(CC)
+HOSTCFLAGS = $(CFLAGS)
+HOSTLDFLAGS = $(LDFLAGS)
 
 quiet_cmd_crosstools_strip = STRIP   $^
       cmd_crosstools_strip = $(STRIP) $^; touch $@
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-11-07 12:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-31 13:15 [U-Boot] [PATCH] tools: Makefile: improve cross_tools target usability Stefan Müller-Klieser
2016-10-31 13:27 ` Marek Vasut
2016-11-05 17:41 ` Masahiro Yamada
2016-11-07 12:05   ` Stefan Müller-Klieser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox