------- Comment #3 from rguenth at gcc dot gnu dot org 2008-12-30 19:12 ------- --libdir="${INSTALL_PREFIX}"/"${PLATFORM_LIBDIR}"
this adjusts the std search paths (as well as --prefix), so you need to put a libc there as well. You probably want to add --with-sysroot=/ to the configure line. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38667