关于configure中的build/host/target
来源:互联网 发布:怎么查询80端口被占用 编辑:程序博客网 时间:2024/05/02 00:09
可以参考:http://www.airs.com/ian/configure/configure_toc.html
Reference:
http://www.tcpdump.org/lists/workers/2001/11/msg00148.html
Reference:
http://www.tcpdump.org/lists/workers/2001/11/msg00148.html
Nope. See `info standards' for the definition of $build*, $host* and
$target* macros.
Basically, $build* refer to the system compilation is being performed on,
$host* refer to the system compiled binaries are to run on
$target* refer to the system compiled binaries will handle. As
such $target* usually have a meaning for developemt tool only.
$target* macros.
Basically, $build* refer to the system compilation is being performed on,
$host* refer to the system compiled binaries are to run on
$target* refer to the system compiled binaries will handle. As
such $target* usually have a meaning for developemt tool only.
So far packages that make use of $target* I know of are binutils, gcc,
gdb and ksymoops (a Linux run-time error disassembler). Let's take
binutils as an example. I compile it in several ways, following are
examples of configure invocations:
gdb and ksymoops (a Linux run-time error disassembler). Let's take
binutils as an example. I compile it in several ways, following are
examples of configure invocations:
1. `./configure --build=mipsel-linux --host=mipsel-linux
--target=mipsel-linux' will build native mipsel-linux binutils on
mipsel-linux.
--target=mipsel-linux' will build native mipsel-linux binutils on
mipsel-linux.
2. `./ 可以参考:http://www.airs.com/ian/configure/configure_toc.html
Reference:
http://www.tcpdump.org/lists/workers/2001/11/msg00148.html--build=i386-linux --host=mipsel-linux
--target=mipsel-linux' will cross-build native mipsel-linux binutils on
i386-linux.
Reference:
http://www.tcpdump.org/lists/workers/2001/11/msg00148.html--build=i386-linux --host=mipsel-linux
--target=mipsel-linux' will cross-build native mipsel-linux binutils on
i386-linux.
3. `./configure --build=i386-linux --host=i386-linux
--target=mipsel-linux' will build mipsel-linux cross-binutils on
i386-linux.
--target=mipsel-linux' will build mipsel-linux cross-binutils on
i386-linux.
4. `./configure --build=mipsel-linux --host=i386-linux
--target=mipsel-linux' will cross-build mipsel-linux cross-binutils for
i386-linux on mipsel-linux.
--target=mipsel-linux' will cross-build mipsel-linux cross-binutils for
i386-linux on mipsel-linux.
As you see, only if $build != $host a cross-compilation is performed.
具体解释一下,build就是你正在使用的机器,
host就是你编译好的程序可以运行的平台,
target就是你编译的程序可以处理的平台.一般来说,我们平时所说的交差编译用不到他target的,比 如./configure --build=i386-linux,--host=arm-linux就可以了,在386的平台上编译可以运行在arm板的程序.但是,一般我们都是 编译程序,而不是编译工具,如果我们编译工具,比如gcc,这个target就有用了.如果我们需要在一个我们的机器上为arm开发板编译一个可以处理 mips程序的gcc,那么target就是mips了
host就是你编译好的程序可以运行的平台,
target就是你编译的程序可以处理的平台.一般来说,我们平时所说的交差编译用不到他target的,比 如./configure --build=i386-linux,--host=arm-linux就可以了,在386的平台上编译可以运行在arm板的程序.但是,一般我们都是 编译程序,而不是编译工具,如果我们编译工具,比如gcc,这个target就有用了.如果我们需要在一个我们的机器上为arm开发板编译一个可以处理 mips程序的gcc,那么target就是mips了
- 关于configure中的build/host/target
- 关于configure中build,target,host中的若干问题
- 关于configure中build,target,host中的若干问题
- 关于configure中build,target,host中的若干问题
- 关于configure中build,target,host中的若干问题
- 关于configure中build,target,host中的若干问题
- configure文件中的build、host、target含义
- ./configure -build,-host,-target设置
- ./configure -build,-host,-target设置
- ./configure -build,-host,-target设置
- ./configure -build,-host,-target设置
- ./configure -build,-host,-target设置
- ./configure -build,-host,-target设置
- ./configure -build,-host,-target设置
- ./configure -build,-host,-target设置
- 关于Linux系统中configure中build,target,host中的若干问题
- 关于configure的build,host,target编译选项的理解.
- GNU Configure 中的 build target和host 的区别
- Free Apache Tomcat Hosting in the Cloud for Java Applications? It's Called OpenShift!
- 2012.10.12 周五
- 河南信阳金牛山办事处因征地与村民起流血冲突-征地-流血冲突
- 骑行青海湖
- 2012.10.13 周六
- 关于configure中的build/host/target
- find 、 grep 命令
- Swing-JComboBox
- 软件开发,维护与支持的困惑
- linux sock_raw原始套接字编程
- 各地少先队深入开展红领巾心向党主题教育-少先队-红领巾心向党-主题教育
- 关于X86下函数调用栈的问题
- struts2 跟踪用户状态session
- 精通XMLDocument