记录关于交叉编译器的一点知识

Posted zhang

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了记录关于交叉编译器的一点知识相关的知识,希望对你有一定的参考价值。

To cross-compile is to build on one platform a binary that will run on another platform. When speaking of cross-compilation, it is important to distinguish between the build platform on which the compilation is performed, and the host platform on which the resulting executable is expected to run. The following configure options are used to specify each of them:

--build=build

    The system on which the package is built.
--host=host

    The system where built programs and libraries will run.


The --host and --build options are usually all we need for cross-compiling. The only exception is if the package being built is itself a cross-compiler: we need a third option to specify its target architecture.

--target=target

    When building compiler tools: the system for which the tools will create output.

For instance when installing GCC, the GNU Compiler Collection, we can use --target=target to specify that we want to build GCC as a cross-compiler for target. Mixing --build and --target, we can actually cross-compile a cross-compiler; such a three-way cross-compilation is known as a Canadian cross.

 

来源:https://www.gnu.org/savannah-checkouts/gnu/automake/manual/html_node/Cross_002dCompilation.html

以上是关于记录关于交叉编译器的一点知识的主要内容,如果未能解决你的问题,请参考以下文章

Qt - 在 Windows 上为 Linux 交叉编译

linux下ffmpeg库 ARM交叉编译

关于openssl的交叉编译

关于为 Xscale ARM 构建交叉编译器的建议?

关于Linux上的arm-linux交叉编译工具链的问题:但是arm也有很多种啊! 这个工具是对所有的ARM都支持吗?

arm-linux-gnueabi-gcc 和 arm-linux-gnueabihf-gcc的区别 ——ARM交叉编译器的学习(学习记录)