Cross compiling glibc-2.2.3
Sangmoon Kim
dogoil at etinsys.com
Wed Apr 17 11:10:13 EST 2002
Hi, IGOR LURI
> Anybody has already crosscompiled glibc 2.2.3 for mpc8xx?
I crosscompiled glibc-2.2.5.
> I know that for glibc-2.1.2 there is a patch in denx page, but for glibc
> 2.2.3 is there any patch?
I referenced the patch in denx page, and fixed the crosscompile problem by following procedure.
1. Move the sysdeps/powerpc/fclrexcpt.c to sysdeps/powerpc/fpu/
mv sysdeps/powerpc/fclrexcpt.c sysdeps/powerpc/fpu/
2. Delete the sysdeps/powerpc/memset.S
rm sysdeps/powerpc/memset.S
3. Edit the sysdeps/powerpc/Makefile
#ifeq ($(subdir),gmon)
#libm-support += fenv_const fe_nomask
#endif
4. Compile
CC=${TARGET}-gcc AR=${TARGET}-ar RANLIB=${TARGET}-ranlib \
CFLAGS="-msoft-float -D_SOFT_FLOAT -mcpu=860 -O2" \
../${GLIBC}/configure --host=$TARGET --prefix=${PREFIX} \
--enable-add-ons=linuxthreads --with-headers=${PREFIX}/include \
--without-fp
Good luck.
- Sangmoon Kim -
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-embedded
mailing list