2011-02-28 56 views
4

據我所知,./configure腳本是用GNU Autoconf生成的。我根本不知道Autoconf。這些工具如何工作,以及如何使用這個./configure腳本使源代碼交叉編譯?`。/ configure`選項用於交叉編譯?

+1

[如何使用交叉編譯器時如何確定主機配置值](https://stackoverflow.com/questions/21990021/how-to-determine-host-value-for-configure-when-using-交叉編譯器) – OpalApps

回答

5

這是一篇很不錯的小文章,詳細閱讀如何交叉編譯:http://linux.bytesex.org/cross-compiler.html

在交叉編譯的主要部分是設置在配置標記的編譯器poinst到目標架構和平臺:

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

這可能已過時(從文章修改後的副本&粘貼),但同樣的概念仍然適用。