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)
7 ltrace is a program that simply runs the specified command until it exits.
8 It intercepts and records the dynamic library calls which are called by
9 the executed process and the signals which are received by that process.
10 It can also intercept and print the system calls executed by the program.
14 prompt "ltrace version"
15 # Don't remove next line
16 # CT_INSERT_VERSION_BELOW
21 select LTRACE_0_5_3_or_later
29 prompt "0.5 (OBSOLETE)"
34 prompt "0.4 (OBSOLETE)"
41 # Don't remove next line
42 # CT_INSERT_VERSION_STRING_BELOW
43 default "0.5.3" if LTRACE_V_0_5_3
44 default "0.5.2" if LTRACE_V_0_5_2
45 default "0.5.1" if LTRACE_V_0_5_1
46 default "0.5" if LTRACE_V_0_5
47 default "0.4" if LTRACE_V_0_4
49 config LTRACE_0_5_3_or_later