Fix building core C compiler.
PowerPC unveiled that you can't reliably build a target libgcc until you have C library headers.
In fact you can't build it at all. The fact that it did build for some architectures was purely coincidental, and a mistake.
This fix should still allow to build uClibc-based toolchains (some ARM uClibc toolchains were build-tested).
/trunk/scripts/build/cc_gcc.sh | 100 47 53 0 +++++++++++++++++++++++-------------------------
1 file changed, 47 insertions(+), 53 deletions(-)
1 # Compute x86-specific values
3 # This one really need a little love! :-(
6 # The architecture part of the tuple:
8 [ -z "${arch}" ] && arch="${CT_ARCH_TUNE}"
10 nocona|athlon*64|k8|athlon-fx|opteron)
11 CT_DoError "Architecture is x86 (32-bit) but selected processor is \"${arch}\" (64-bit)";;
12 "") CT_TARGET_ARCH=i386;;
13 i386|i486|i586|i686) CT_TARGET_ARCH="${arch}";;
14 winchip*) CT_TARGET_ARCH=i486;;
15 pentium|pentium-mmx|c3*) CT_TARGET_ARCH=i586;;
16 pentiumpro|pentium*|athlon*) CT_TARGET_ARCH=i686;;
17 *) CT_TARGET_ARCH=i586;;