toolchain/gcc: make sure to pass $(HOST_DIR)/usr/bin in the PATH
authorMischa Jonker <Mischa.Jonker@synopsys.com>
Thu, 9 May 2013 05:53:04 +0000 (05:53 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 12 May 2013 20:22:00 +0000 (22:22 +0200)
commit671bd0468516224bf8c1bb56e35bed9b3cb0c8d6
tree673836f730a9369dc490540f5bcc8aa23e5dab84
parent61232f80607edb09c04124b8bf6076555668b417
toolchain/gcc: make sure to pass $(HOST_DIR)/usr/bin in the PATH

Since gcc doesn't use the package infrastructure, it doesn't get all
the good generic environment variables, and forgets to get
$(HOST_DIR)/usr/bin in its PATH. This prevents gcc from finding and
using host tools built by Buildroot.

This patch therefore ensures that $(HOST_MAKE_ENV) or
$(TARGET_MAKE_ENV) are passed at the appropriate locations. It will be
useful for a later patch that makes gcc depend on host-flex/host-bison
in some situations.

Original patch by Thomas Petazzoni.

Signed-off-by: Mischa Jonker <mjonker@synopsys.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
toolchain/gcc/gcc-uclibc-4.x.mk