scripts/build/libc/glibc.sh
changeset 1016 a059741f7bd4
parent 950 82209e5c862a
child 1037 f30de763bcce
     1.1 --- a/scripts/build/libc/glibc.sh	Mon Oct 20 17:46:43 2008 +0000
     1.2 +++ b/scripts/build/libc/glibc.sh	Wed Oct 29 21:20:23 2008 +0000
     1.3 @@ -443,6 +443,14 @@
     1.4          GLIBC_INSTALL_APPS_LATER=no
     1.5      fi
     1.6  
     1.7 +    # glibc initial build hacks
     1.8 +    # http://sourceware.org/ml/crossgcc/2008-10/msg00068.html
     1.9 +    case "${CT_ARCH},${CT_ARCH_CPU}" in
    1.10 +	powerpc,8??)
    1.11 +	    CT_DoLog DEBUG "Activating support for memset on broken ppc-8xx (CPU15 erratum)"
    1.12 +	    GLIBC_INITIAL_BUILD_ASFLAGS="-DBROKEN_PPC_8xx_CPU15";;
    1.13 +    esac
    1.14 +
    1.15      # If this fails with an error like this:
    1.16      # ...  linux/autoconf.h: No such file or directory 
    1.17      # then you need to set the KERNELCONFIG variable to point to a .config file for this arch.
    1.18 @@ -453,6 +461,7 @@
    1.19      CT_DoExecLog ALL make LD=${CT_TARGET}-ld                        \
    1.20                             RANLIB=${CT_TARGET}-ranlib               \
    1.21                             OBJDUMP_FOR_HOST="${CT_TARGET}-objdump"  \
    1.22 +                           ASFLAGS="${GLIBC_INITIAL_BUILD_ASFLAGS}" \
    1.23                             ${GLIBC_INITIAL_BUILD_RULE}
    1.24  
    1.25      CT_DoLog EXTRA "Installing C library"