gpt4 book ai didi

cross-compiling - 交叉编译,为什么是 "checking whether we are cross compiling... no"?

转载 作者:行者123 更新时间:2023-12-04 07:00:55 29 4
gpt4 key购买 nike

我正在尝试自己编译跨平台工具链。

当我编译 binutils-2.22 时,它成功了,但为什么会出现“检查我们是否正在交叉编译...否”?我想应该是"is",对吧?

我的主机是运行 ubuntu 的 i686,我的目标是 arm。

~/telink_linux/build-tools/binutils-2.22$ ./configure --prefix=/home/shuaihan/telink_linux/tools --target=arm-linux
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... arm-unknown-linux-gnu
...
checking whether we are cross compiling... no
...
configure: creating ./config.status
config.status: creating Makefile

在此之后,我“make”和“makeinstall”,创建了 arm-linux-*。

谢谢!

最佳答案

因为你不是交叉编译 binutils;您正在编译跨 binutils。如果您正在编译 ARM binutils 以在 ARM 上运行,或者您正在编译 ARM binutils 以在第三个平台(i686-linux 和 arm-linux 都不是)上运行,那么该消息会说"is"。

关于cross-compiling - 交叉编译,为什么是 "checking whether we are cross compiling... no"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13150631/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com