scripts: remove . from $PATH
Add CT_SanitizePath function which removes entries referring to ., /tmp
and non-existing directories from $PATH, and call it early in the
build script.
If . is in PATH, gcc-4.4.4 build breaks:
[ALL ] checking what assembler to use...
/tmp/build/targets/arm-unknown-linux-uclibcgnueabi/build/gcc-core-static/arm-unknown-linux-uclibcgnueabi/bin/as
...
[ALL ] config.status: creating as
i.e. "as" is supposed to be the arm-unknown-linux-uclibcgnueabi cross assembler,
but config.status creates a local "as" script which is calling the
host assembler.
Signed-off-by: Johannes Stezenbach <js@sig21.net>
[Yann E. MORIN: style fixes + explanations]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
(transplanted from 20dd8cef1c8adff0aa3e78ae6d7acfbc45ed5a83)
1 From 47e88c04e01299f975ff23f33035d0f34a8f6787 Mon Sep 17 00:00:00 2001
2 From: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
3 Date: Fri, 22 Jan 2010 13:32:44 +0100
4 Subject: [PATCH 06/15] {,host}utils depend on headers
6 Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
9 1 files changed, 2 insertions(+), 2 deletions(-)
11 diff --git a/Makefile.in b/Makefile.in
12 index 4c5aecb..ec4c28e 100644
15 @@ -436,7 +436,7 @@ ifeq ($(HAVE_SHARED),y)
21 $(Q)$(MAKE) CROSS="$(CROSS)" CC="$(CC)" -C utils $@
23 # Installs helper applications, such as 'ldd' and 'ldconfig'
24 @@ -445,7 +445,7 @@ install_utils: utils
26 endif # ifeq ($(HAVE_DOT_CONFIG),y)
30 $(Q)$(MAKE) CROSS="$(CROSS)" CC="$(CC)" HOSTCC="$(HOSTCC)" DOTHOST=.host -C utils $@
32 install_hostutils: hostutils