Cross-compiling, why "checking to see if we cross-compile ... no"?

I am trying to compile a cross-platform chain of tools.

When I combined binutils-2.22, it was a success, but why does the β€œcheck whether we cross-compile ... no” result? I suppose it should be yes, right?

My i686 host works with ubuntu, and my goal is hand.

~/telink_linux/build-tools/binutils-2.22$ ./configure --prefix=/home/shuaihan/telink_linux/tools --target=arm-linux checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking target system type... arm-unknown-linux-gnu ... checking whether we are cross compiling... no ... configure: creating ./config.status config.status: creating Makefile 

After that I create "make" and "makeinstall", arm-linux- * is created.

Thanks!

+4
source share
1 answer

Because you are not cross compiling binutils; you are compiling cross-binutils. If you compiled ARM binutils to run on ARM or if you compiled ARM binutils to run on a third platform (neither i686-linux nor arm-linux), then this message will say yes.

+3
source

Source: https://habr.com/ru/post/1443134/


All Articles