用于交叉编译的`./configure` 选项? [英] `./configure` options for cross compile?

查看:62
本文介绍了用于交叉编译的`./configure` 选项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我所知,./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?

推荐答案

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

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.

这篇关于用于交叉编译的`./configure` 选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆