logo       

cross compile gcc for mipsel: msg#00161

lib.uclibc.general

Subject: cross compile gcc for mipsel

-----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-----


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise