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 sh-specific values
4 # The architecture part of the tuple:
5 CT_TARGET_ARCH="${CT_ARCH_SH_VARIANT}${target_endian_eb}"
7 # gcc ./configure flags
16 case "${CT_ARCH_BE},${CT_ARCH_LE}" in
17 y,) CT_ARCH_ENDIAN_CFLAG=-mb;;
18 ,y) CT_ARCH_ENDIAN_CFLAG=-ml;;
22 case "${CT_ARCH_SH_VARIENT}" in
23 sh3) CT_ARCH_ARCH_CFLAG=-m3;;
25 case "${CT_ARCH_FLOAT_HW},${CT_ARCH_FLOAT_SW}" in
26 y,) CT_ARCH_ARCH_CFLAG="-m4${CT_ARCH_SH_VARIANT##sh?}";;
27 ,y) CT_ARCH_ARCH_CFLAG="-m4${CT_ARCH_SH_VARIANT##sh?}-nofpu";;