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)
11 Enter the date of the snapshot you want to use in the form: YYYYMMDD
12 where YYYY is the 4-digit year, MM the 2-digit month and DD the 2-digit
16 - glibc has snapshots done every monday, and only the last ten are kept.
17 - uClibc has daily snapshots, and only the last 30-or-so are kept.
19 So if you want to be able to re-build your toolchain later, you will
20 have to save your C library tarball by yourself.
22 source "config.gen/libc.in"
24 config LIBC_SUPPORT_NPTL
28 config LIBC_SUPPORT_LINUXTHREADS
34 default "nptl" if THREADS_NPTL
35 default "linuxthreads" if THREADS_LINUXTHREADS
36 default "none" if THREADS_NONE || LIBC_none
37 # No C library, no threads!
41 comment "Common C library options"
45 prompt "Threading implementation to use:"
46 default THREADS_NPTL if LIBC_SUPPORT_NPTL
47 default THREADS_LINUXTHREADS if LIBC_SUPPORT_LINUXTHREADS && ! LIBC_SUPPORT_NPTL
48 default THREADS_NONE if ! LIBC_SUPPORT_LINUXTHREADS && ! LIBC_SUPPORT_NPTL
53 depends on LIBC_SUPPORT_NPTL
55 config THREADS_LINUXTHREADS
58 depends on LIBC_SUPPORT_LINUXTHREADS