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>
2 # Automatically generated make config: don't edit
3 # crosstool-NG version: hg_default@2019_7cf1a785f441
4 # Sun Jul 11 15:01:11 2010
6 # CT_BACKEND is not set
9 # Paths and misc options
13 # crosstool-NG behavior
15 # CT_OBSOLETE is not set
16 # CT_EXPERIMENTAL is not set
17 # CT_DEBUG_CT is not set
22 CT_LOCAL_TARBALLS_DIR="${HOME}/src"
24 CT_WORK_DIR="${CT_TOP_DIR}/targets"
25 CT_PREFIX_DIR="${HOME}/x-tools/${CT_TARGET}"
26 CT_INSTALL_DIR="${CT_PREFIX_DIR}"
33 # CT_FORBID_DOWNLOAD is not set
34 # CT_FORCE_DOWNLOAD is not set
36 # CT_PREFER_MIRROR is not set
37 CT_MIRROR_BASE_URL="http://ymorin.is-a-geek.org/mirrors/"
39 CT_DOWNLOAD_MAX_CHUNKS=5
40 # CT_ONLY_DOWNLOAD is not set
45 # CT_FORCE_EXTRACT is not set
46 CT_OVERIDE_CONFIG_GUESS_SUB=y
47 # CT_ONLY_EXTRACT is not set
49 # CT_PATCH_LOCAL is not set
50 # CT_PATCH_BUNDLED_LOCAL is not set
51 # CT_PATCH_LOCAL_BUNDLED is not set
52 # CT_PATCH_BUNDLED_FALLBACK_LOCAL is not set
53 # CT_PATCH_LOCAL_FALLBACK_BUNDLED is not set
54 # CT_PATCH_NONE is not set
55 CT_PATCH_ORDER="bundled"
56 # CT_PATCH_SINGLE is not set
57 # CT_PATCH_USE_LOCAL is not set
65 # CT_CONFIG_SHELL_SH is not set
66 # CT_CONFIG_SHELL_ASH is not set
67 CT_CONFIG_SHELL_BASH=y
68 # CT_CONFIG_SHELL_CUSTOM is not set
69 CT_CONFIG_SHELL="bash"
74 # CT_LOG_ERROR is not set
75 # CT_LOG_WARN is not set
76 # CT_LOG_INFO is not set
78 # CT_LOG_ALL is not set
79 # CT_LOG_DEBUG is not set
80 CT_LOG_LEVEL_MAX="EXTRA"
81 # CT_LOG_SEE_TOOLS_WARN is not set
84 CT_LOG_FILE_COMPRESS=y
90 # CT_ARCH_SUPPORTS_BOTH_MMU is not set
91 # CT_ARCH_SUPPORTS_BOTH_ENDIAN is not set
94 CT_ARCH_SUPPORT_ARCH=y
95 # CT_ARCH_SUPPORT_ABI is not set
97 CT_ARCH_SUPPORT_TUNE=y
98 # CT_ARCH_SUPPORT_FPU is not set
99 # CT_ARCH_DEFAULT_HAS_MMU is not set
100 # CT_ARCH_DEFAULT_BE is not set
101 # CT_ARCH_DEFAULT_LE is not set
103 # CT_ARCH_DEFAULT_64 is not set
108 # CT_ARCH_64 is not set
111 # CT_ARCH_FLOAT_SW is not set
116 # General target options
118 # CT_ARCH_alpha is not set
119 # CT_ARCH_arm is not set
120 # CT_ARCH_avr32 is not set
121 # CT_ARCH_blackfin is not set
122 # CT_ARCH_ia64 is not set
123 # CT_ARCH_m68k is not set
124 # CT_ARCH_mips is not set
125 # CT_ARCH_powerpc is not set
126 # CT_ARCH_s390 is not set
127 # CT_ARCH_sh is not set
129 CT_ARCH_alpha_AVAILABLE=y
130 CT_ARCH_arm_AVAILABLE=y
131 CT_ARCH_avr32_AVAILABLE=y
132 CT_ARCH_blackfin_AVAILABLE=y
133 CT_ARCH_ia64_AVAILABLE=y
134 CT_ARCH_m68k_AVAILABLE=y
135 CT_ARCH_mips_AVAILABLE=y
136 CT_ARCH_powerpc_AVAILABLE=y
137 CT_ARCH_s390_AVAILABLE=y
138 CT_ARCH_sh_AVAILABLE=y
139 CT_ARCH_x86_AVAILABLE=y
143 # Target optimisations
151 # General toolchain options
153 # CT_USE_SYSROOT is not set
156 # Tuple completion and aliasing
158 CT_TARGET_VENDOR="pc"
159 CT_TARGET_ALIAS_SED_EXPR=""
165 # CT_NATIVE is not set
167 # CT_CROSS_NATIVE is not set
168 # CT_CANADIAN is not set
169 CT_TOOLCHAIN_TYPE="cross"
181 # CT_BARE_METAL is not set
183 # CT_KERNEL_SUPPORTS_SHARED_LIBS is not set
185 # CT_KERNEL_bare_metal is not set
186 # CT_KERNEL_linux is not set
188 CT_KERNEL_bare_metal_AVAILABLE=y
189 CT_KERNEL_linux_AVAILABLE=y
190 CT_KERNEL_mingw32_AVAILABLE=y
192 # CT_W32API_V_select is not set
193 CT_W32API_VERSION="3.14"
196 # Common kernel options
203 # CT_ARCH_BINFMT_FLAT is not set
204 # CT_ARCH_BINFMT_FDPIC is not set
209 # CT_BINUTILS_V_2_20_1 is not set
210 # CT_BINUTILS_V_2_20 is not set
211 CT_BINUTILS_V_2_19_1=y
212 # CT_BINUTILS_V_2_19 is not set
213 # CT_BINUTILS_V_2_18 is not set
214 # CT_BINUTILS_V_2_17 is not set
215 # CT_BINUTILS_V_2_16_1 is not set
216 CT_BINUTILS_VERSION="2.19.1"
217 CT_BINUTILS_EXTRA_CONFIG=""
218 # CT_BINUTILS_FOR_TARGET is not set
223 # CT_SSTRIP is not set
229 CT_CC_VERSION="4.3.2"
231 # CT_CC_V_4_5_0 is not set
232 # CT_CC_V_4_4_4 is not set
233 # CT_CC_V_4_4_3 is not set
234 # CT_CC_V_4_4_2 is not set
235 # CT_CC_V_4_4_1 is not set
236 # CT_CC_V_4_4_0 is not set
237 # CT_CC_V_4_3_4 is not set
238 # CT_CC_V_4_3_3 is not set
240 # CT_CC_V_4_3_1 is not set
241 # CT_CC_V_4_2_4 is not set
242 # CT_CC_V_4_2_3 is not set
243 # CT_CC_V_4_2_2 is not set
244 # CT_CC_V_4_2_1 is not set
245 # CT_CC_V_4_2_0 is not set
246 # CT_CC_V_4_1_2 is not set
247 # CT_CC_V_4_0_4 is not set
248 # CT_CC_V_3_4_6 is not set
249 CT_CC_GCC_4_2_or_later=y
250 CT_CC_GCC_4_3_or_later=y
251 # CT_CC_GCC_4_4_or_later is not set
252 # CT_CC_GCC_4_5_or_later is not set
253 CT_CC_GCC_USE_GMP_MPFR=y
254 # CT_CC_GCC_USE_PPL_CLOOG is not set
255 # CT_CC_GCC_USE_MPC_LIBELF is not set
257 CT_CC_SJLJ_EXCEPTIONS_CONFIGURE=y
258 # CT_CC_SJLJ_EXCEPTIONS_USE is not set
259 # CT_CC_SJLJ_EXCEPTIONS_DONT_USE is not set
260 CT_CC_ENABLE_CXX_FLAGS=""
261 CT_CC_CORE_EXTRA_CONFIG=""
262 CT_CC_EXTRA_CONFIG=""
263 CT_CC_GCC_ENABLE_TARGET_OPTSPACE=y
264 # CT_CC_GCC_DISABLE_PCH is not set
265 CT_CC_PKGVERSION="crosstool-NG-${CT_VERSION}"
268 CT_CC_SUPPORT_FORTRAN=y
272 CT_CC_SUPPORT_OBJCXX=y
275 # Additional supported languages:
278 # CT_CC_LANG_FORTRAN is not set
279 # CT_CC_LANG_JAVA is not set
285 # CT_LIBC_eglibc is not set
286 # CT_LIBC_glibc is not set
288 # CT_LIBC_newlib is not set
289 # CT_LIBC_none is not set
290 # CT_LIBC_uClibc is not set
291 CT_LIBC_eglibc_AVAILABLE=y
292 CT_LIBC_glibc_AVAILABLE=y
293 CT_LIBC_mingw_AVAILABLE=y
295 # CT_MINGWRT_V_select is not set
296 CT_MINGWRT_VERSION="3.18"
297 CT_LIBC_newlib_AVAILABLE=y
298 CT_LIBC_none_AVAILABLE=y
299 CT_LIBC_uClibc_AVAILABLE=y
300 CT_LIBC_SUPPORT_THREADS_ANY=y
301 # CT_LIBC_SUPPORT_NPTL is not set
302 # CT_LIBC_SUPPORT_LINUXTHREADS is not set
303 CT_LIBC_SUPPORT_WIN32THREADS=y
307 # Common C library options
309 # CT_THREADS_NPTL is not set
310 # CT_THREADS_LINUXTHREADS is not set
311 CT_THREADS_WIN32THREADS=y
312 # CT_THREADS_NONE is not set
315 # mingw other options
320 CT_MINGW_PDCURSES_V_3_4=y
321 # CT_MINGW_PDCURSES_V_select is not set
322 CT_MINGW_PDCURSES_VERSION="3.4"
324 CT_MINGW_GNURX_V_2_5_1=y
325 # CT_MINGW_GNURX_V_select is not set
326 CT_MINGW_GNURX_VERSION="2.5.1"
331 # CT_DEBUG_dmalloc is not set
332 # CT_DEBUG_duma is not set
333 # CT_DEBUG_gdb is not set
334 # CT_DEBUG_ltrace is not set
335 # CT_DEBUG_strace is not set
338 # Companion libraries
342 # FIXME: check real dependencies!!!
345 # CT_WRAPPER_NEEDED is not set
348 # CT_GMP_V_5_0_1 is not set
350 # CT_GMP_V_4_3_1 is not set
351 # CT_GMP_V_4_3_0 is not set
352 # CT_GMP_V_4_2_4 is not set
353 # CT_GMP_V_4_2_2 is not set
354 CT_GMP_VERSION="4.3.2"
355 # CT_MPFR_V_3_0_0 is not set
356 # CT_MPFR_V_2_4_2 is not set
358 # CT_MPFR_V_2_4_0 is not set
359 # CT_MPFR_V_2_3_2 is not set
360 # CT_MPFR_V_2_3_1 is not set
361 CT_MPFR_VERSION="2.4.1"
364 # Companion libraries common options
366 # CT_COMPLIBS_CHECK is not set
367 # CT_COMPLIBS_SHARED is not set