OpenWrt Forum Archive

Topic: gcc cross compiler (maybe gentoo) ?

The content of this topic has been archived on 8 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello,

as far as I have understood, the toolchain will compil a cross compiler. I don't know if someone has already tried to substitute the "original" compiler on his system with the "cross" one.

Under gentoo there is http://packages.gentoo.org/search/?sstring=crossdev which I don't exactly know what's about...

Thank wink

What do you mean by "substitute the "original" compiler on his system with the "cross" one." ?

The cross compiler is a host-specific and target-specific program. It can be run for the host system and produces a target binary. Running a mipsel compiler on another platform (except mips maybe) won't work.

OK, thank for the info, I was thinking it was just a gcc with an extra understanding of -march option.
Great to know !

The discussion might have continued from here.