问题
As far as I know, ./configure
script is generated with GNU Autoconf
. I don't know about Autoconf
at all. How do these tools work, and how can I use this ./configure
script to make source to cross-compile?
回答1:
This is a pretty good little article to read on how to cross-compile: http://linux.bytesex.org/cross-compiler.html.
The main part in cross-compiling is setting the configure flags for the compiler to poinst to the target architecture and platform:
./configure --target=sparc-linux --with-gnu-as i486-redhat-linux
This might be outdated (modified copy & paste from that article), but the same concept still applies.
来源:https://stackoverflow.com/questions/5139247/configure-options-for-cross-compile