|
发表于 2007-5-24 14:06:26
|
显示全部楼层
Post by cnsword
--target应该是交叉编译器生成二进制文件运行的平台,也就是目标系统平台。--target=arm-linux --host应该是i386-linux是我交叉编译器要跑的平台。
不过还是要谢谢你哦,我已经解决了添加--disable-libmudflap,将这一项给禁了就行了,反正是第一遍编译只需要arm-linux-gcc
====不好意思,没看清你的标题,总结一下:
GNU 有一本关于这方面的书,叫autobook-1.5
我引用一下:
“When building cross compilation tools, there are two different systems involved: the system on which the tools will run, and the system for which the tools will generate code. The system on which the tools will run is called the host system. The system for which the tools generate code is called the target system.”
-----当编译一个交叉编译工具时(如:arm-gcc),--host=i386-linux --target=arm-linux
Building with a Cross Compiler
“Building a program on one system and running it on another is sometimes referred to as a Canadian Cross.”
“The system on which the tools are being built is called the build system. The system on which the tools will run is called the host system. For example, if you are building a Solaris program on a GNU/Linux system, as in the previous example, the build system would be GNU/Linux, and the host system would be Solaris.”
--如果是用一个交叉编译器进行build时(这种方式叫做 Canadian Cross),--build=i386-linux, --host=arm-linux.
再来个复杂点的,
“build a cross compiler using a cross compiler”
--“In this case, the system for which the resulting cross compiler generates code is the target system.”
--“An example of building a cross compiler using a Canadian Cross would be building a Windows cross MIPS ELF compiler on a GNU/Linux system. In this case the build system would be GNU/Linux, the host system would be Windows, and the target system would be MIPS ELF. “
--如果我们想在linux下编一个交叉编译器A,使它A能够运行在windows上面,并且该工具A在windows下编译程序后生成的程序能够跑在mips下,那么--target=mips-elf --host=windows --build=i386-linux |
|