Ian Lance Taylor wrote:
I trying to build gcc for mipsel-linux architecture.
CC=mipsel-linux-gcc CFLAGS="-Os -mips32 -mtune=4kc"
../gcc-3.4.3/configure --host=mipsel-linux --target=mipsel-linux
--build=i686-linux --prefix=/home/me/work/compiling/gcc/build-gcc
This is not doing what I would call a cross-compiler from
i686-pc-linux-gnu to mipsel-linux. I would call this building a
native compiler for mipsel-linux, and doing the build on
i686-pc-linux-gnu.
Yes. It exactly what I need - native mipsel-linux compiler.
Is there any docs or any hints for this?
You need to build a cross-compiler first, and use that to build a
native compiler.
CC=mipsel-linux-gcc
I already have cross-compiler.