diff -r 82209e5c862a -r a059741f7bd4 scripts/build/libc/glibc.sh --- a/scripts/build/libc/glibc.sh Mon Oct 20 17:46:43 2008 +0000 +++ b/scripts/build/libc/glibc.sh Wed Oct 29 21:20:23 2008 +0000 @@ -443,6 +443,14 @@ GLIBC_INSTALL_APPS_LATER=no fi + # glibc initial build hacks + # http://sourceware.org/ml/crossgcc/2008-10/msg00068.html + case "${CT_ARCH},${CT_ARCH_CPU}" in + powerpc,8??) + CT_DoLog DEBUG "Activating support for memset on broken ppc-8xx (CPU15 erratum)" + GLIBC_INITIAL_BUILD_ASFLAGS="-DBROKEN_PPC_8xx_CPU15";; + esac + # If this fails with an error like this: # ... linux/autoconf.h: No such file or directory # then you need to set the KERNELCONFIG variable to point to a .config file for this arch. @@ -453,6 +461,7 @@ CT_DoExecLog ALL make LD=${CT_TARGET}-ld \ RANLIB=${CT_TARGET}-ranlib \ OBJDUMP_FOR_HOST="${CT_TARGET}-objdump" \ + ASFLAGS="${GLIBC_INITIAL_BUILD_ASFLAGS}" \ ${GLIBC_INITIAL_BUILD_RULE} CT_DoLog EXTRA "Installing C library"