用于交叉编译的`./configure`选项?

发布于 2024-10-19 06:59:21 字数 154 浏览 8 评论 0原文

据我所知,./configure脚本是用GNU Autoconf生成的。我根本不了解Autoconf。这些工具如何工作,如何使用这个 ./configure 脚本来制作源代码以进行交叉编译?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

温柔少女心 2024-10-26 06:59:21

这是一篇关于如何交叉编译的非常好的小文章: http://linux.bytesex .org/cross-compiler.html

交叉编译的主要部分是设置编译器的配置标志以指向目标体系结构和平台:

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

这可能已经过时(修改了该文章的复制和粘贴),但相同的概念仍然适用。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文