===================================================================
@@ -386,6 +386,15 @@
echo libc_cv_c_cleanup=yes
fi >config.cache
+ case ${CT_TARGET} in
+ # Remove inline asm powerpc memset, which is broken for FreeScale 8xx
+ # (CPU15 errata)
+ # http://sourceware.org/ml/crossgcc/2006-12/msg00057.html
+ # http://mlblog.osdir.com/linux.ports.ppc.embedded/2005-04/index.shtml
+ # http://ozlabs.org/pipermail/linuxppc-embedded/2005-January/016351.html
+ powerpc-8* ) rm -f ${CT_SRC_DIR}/${CT_LIBC_FILE}/sysdeps/powerpc/powerpc32/memset.S ;;
+ esac
+
# Configure with --prefix the way we want it on the target...
# There are a whole lot of settings here. You'll probably want
# to read up on what they all mean, and customize a bit, possibly by setting GLIBC_EXTRA_CONFIG