arch/mips/functions
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Thu Aug 07 13:28:02 2008 +0000 (2008-08-07)
changeset 763 f078be5961ec
parent 387 2fa4b675a9a3
permissions -rw-r--r--
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 IA-64-specific values
     2 
     3 CT_DoArchValues() {
     4     # The architecture part of the tuple:
     5     CT_TARGET_ARCH="${CT_ARCH}${target_endian_el}"
     6 
     7     # Override CFLAGS for endianness:
     8     case "${CT_ARCH_BE},${CT_ARCH_LE}" in
     9         y,) CT_ARCH_ENDIAN_CFLAG="-EB";;
    10         ,y) CT_ARCH_ENDIAN_CFLAG="-EL";;
    11     esac
    12 }