`./configure` options for cross compile?

*爱你&永不变心* 提交于 2019-12-22 08:08:49

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!