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>
11 source "config.gen/cc.in"
16 config CC_SUPPORT_FORTRAN
19 config CC_SUPPORT_JAVA
25 config CC_SUPPORT_OBJC
28 config CC_SUPPORT_OBJCXX
31 comment "Additional supported languages:"
37 depends on CC_SUPPORT_CXX
39 Enable building a C++ compiler.
41 Only select this if you know that your specific version of the
42 compiler supports this language.
46 config CC_LANG_FORTRAN
50 depends on CC_SUPPORT_FORTRAN
52 Enable building a FORTRAN compiler.
54 Only select this if you know that your specific version of the
55 compiler supports this language.
61 depends on CC_SUPPORT_JAVA
63 Enable building a Java compiler.
65 Only select this if you know that your specific version of the
66 compiler supports this language.
70 prompt "ADA (EXPERIMENTAL)"
72 depends on CC_SUPPORT_ADA
73 depends on EXPERIMENTAL
75 Enable building an Ada compiler.
77 Only select this if you know that your specific version of the
78 compiler supports this language.
82 prompt "Objective-C (EXPERIMENTAL)"
84 depends on CC_SUPPORT_OBJC
85 depends on EXPERIMENTAL
87 Enable building an Objective C compiler.
89 Only select this if you know that your specific version of the
90 compiler supports this language.
94 prompt "Objective-C++ (EXPERIMENTAL)"
95 depends on EXPERIMENTAL
97 depends on CC_SUPPORT_OBJCXX
99 Enable building an Objective C++ compiler.
101 Only select this if you know that your specific version of the
102 compiler supports this language.
104 config CC_LANG_OTHERS
106 prompt "Other languages (EXPERIMENTAL)"
108 depends on EXPERIMENTAL
110 Enter here a comma-separated list of languages that you know your compiler
111 supports, besides those listed above.
113 Eg. gcc-4.1+ has a toy programming language, treelang. As it is not usefull
114 in real life, it is not available in the selection above.
118 source "config.gen/cc.in.2"