`. / configure` for cross-compiling?

As far as I know, a ./configure script is generated using GNU Autoconf . I donโ€™t know about Autoconf . How do these tools work, and how can I use this ./configure script so that the source cross-compiles?

+4
source share
1 answer

This is a pretty good article to read about how to cross-compile: http://linux.bytesex.org/cross-compiler.html .

The bulk of the cross-compilation sets the configure flags for the compiler to determine the target architecture and platform:

 ./configure --target=sparc-linux --with-gnu-as i486-redhat-linux 

It may be deprecated (modified copy and paste from this article), but the same concept still applies.

+5
source

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


All Articles