[uClibc]cross compile gcc for mipsel
Bruno Randolf
br1 at 4g-systems.de
Wed Mar 19 11:05:45 UTC 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
hello!
i have been going thru some pain cross-compiling gcc for a mipsel platform.
now i have had success using buildroot by adding "--build=$(GNU_HOST_NAME) \"
to the gcc configure in gcc_target.mk.
this way it still fails at a point where gcc needs limits.h and cant find it.
i solved this by editing gcc-target/gcc/Makefile and adding the include
directory of the target, so it reads:
INCLUDES = -I. -I$(@D) -I$(srcdir) -I$(srcdir)/$(@D) \
-I$(srcdir)/config -I$(srcdir)/../include \
-I/data/uclibc/buildroot/build/root/usr/include
if anyone knows a better solution, please let me know.
thanks,
bruno
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+eE8Pfg2jtUL97G4RAsbbAJsGZ5PfoAIfKM8TUDKAZs6hVJ2vEwCfSCmJ
Z6o8jfUrlVVfe6sm8W33kFg=
=qmI1
-----END PGP SIGNATURE-----
More information about the uClibc
mailing list