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 I would like to thank these fine people for making crosstool-NG possible:
3 Dan KEGEL, the original author of crosstool: http://www.kegel.com/
4 Dan was very helpfull and willing to help when I build my first toolchains.
5 I owe him one. Thank you Dan!
6 Some crosstool-NG scripts have code snippets coming almost as-is from the
9 And in order of appearance on the crossgcc ML:
11 Allan CLARK for his investigations on building toolchains on MacOS-X.
12 Allan made extensive tests of the first alpha of crosstool-NG on his
13 MacOS-X, and unveiled some bash-2.05 weirdness.
16 - some improvements to the build procedure
17 - cxa_atexit disabling for C libraries not supporting it (old uClibc)
18 - misc suggestions (restartable build, ...)
19 - get rid of some bashisms in ./configure
20 - contributed OpenRISC or32 support
23 - some small improvements to the configurator, misc prompting glitches
24 - 'sanitised' patches for binutils-2.17
25 - patches for glibc-2.5
26 - misc patches, typos and eye candy
27 - too many to list any more!
30 - initial ia64 support
34 - a uClibc floating point fix
35 - initial support for ARM EABI
38 - initiated Super-H port
41 - make it build with ancient findutils
44 - a patch to glibc to build on 'ancient' shells
45 - reported mis-use of $CT_CC_NATIVE
48 - fix building glibc-2.7 (and 2.6.1) with newer kernels
54 - preliminary Alpha support
55 - intense gcc-4.3 brainstorming
58 - intense gcc-4.3 brainstorming
61 Many others have contributed, either in form of patches, suggestions,
62 comments, or testing... Thank you to all of you!
64 Special dedication to the buildroot people for maintaining a set of patches I
65 happily and shamelessly vampirise from time to time... :-)
67 More to come as they help.