免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 8062 | 回复: 12
打印 上一主题 下一主题

RedHat, 64位, 安装GCC时的config [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-06-23 09:22 |只看该作者 |倒序浏览
30可用积分
本帖最后由 TOADLover 于 2011-06-23 09:25 编辑

[root@ftpsvr gcc-4.6.0]# uname -a
Linux ftpsvr 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:39 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux


#gcc-3.4.0/configure --prefix=/usr/local/gcc-3.4.0 --enable-threads=posix --disable-checking --enable--long-long --host=i386-redhat-linux --with-system-zlib --enable-languages=c,c++,java

这些选项的意思怎么查看?

最佳答案

查看完整内容

gcc-3.4.0/configure --help就应该能看到选项的说明了

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
2 [报告]
发表于 2011-06-23 09:22 |只看该作者
gcc-3.4.0/configure --help就应该能看到选项的说明了

论坛徽章:
0
3 [报告]
发表于 2011-06-23 09:26 |只看该作者
[root@ftpsvr gcc-4.6.0]# configure --help
-bash: configure: command not found
[root@ftpsvr gcc-4.6.0]#

论坛徽章:
1
2015年亚洲杯之沙特阿拉伯
日期:2015-04-10 13:59:00
4 [报告]
发表于 2011-06-23 09:30 |只看该作者
[root@ftpsvr gcc-4.6.0]# configure --help
-bash: configure: command not found
[root@ftpsvr gcc-4.6 ...
TOADLover 发表于 2011-06-23 09:26

你没有按照LS给你的命令执行了。。。。

论坛徽章:
0
5 [报告]
发表于 2011-06-23 09:37 |只看该作者
[root@ftpsvr gcc-4.6.0]# /usr/local/src/gcc-4.6.0/configure --help
`configure' configures this package to adapt to many kinds of systems.

Usage: /usr/local/src/gcc-4.6.0/configure [OPTION]... [VAR=VALUE]...

论坛徽章:
0
6 [报告]
发表于 2011-06-23 09:38 |只看该作者
不够详细。。。。

我在INSTALL下的index.html找到了。

论坛徽章:
0
7 [报告]
发表于 2011-06-23 09:38 |只看该作者
--enable-threads
Specify that the target supports threads. This affects the Objective-C compiler and runtime library, and exception handling for other languages like C++ and Java. On some systems, this is the default.
In general, the best (and, in many cases, the only known) threading model available will be configured for use. Beware that on some systems, GCC has not been taught what threading models are generally available for the system. In this case, --enable-threads is an alias for --enable-threads=single.


--disable-threads
Specify that threading support should be disabled for the system. This is an alias for --enable-threads=single.

--enable-threads=lib
Specify that lib is the thread support library. This affects the Objective-C compiler and runtime library, and exception handling for other languages like C++ and Java. The possibilities for lib are:
aix
AIX thread support.

dce
DCE thread support.

gnat
Ada tasking support. For non-Ada programs, this setting is equivalent to ‘single’. When used in conjunction with the Ada run time, it causes GCC to use the same thread primitives as Ada uses. This option is necessary when using both Ada and the back end exception handling, which is the default for most Ada targets.

mach
Generic MACH thread support, known to work on NeXTSTEP. (Please note that the file needed to support this configuration, gthr-mach.h, is missing and thus this setting will cause a known bootstrap failure.)

no
This is an alias for ‘single’.

posix
Generic POSIX/Unix98 thread support.

posix95
Generic POSIX/Unix95 thread support.

rtems
RTEMS thread support.

single
Disable thread support, should work for all platforms.

solaris
Sun Solaris 2/Unix International thread support. Only use this if you really need to use this legacy API instead of the default, ‘posix’.

vxworks
VxWorks thread support.

win32
Microsoft Win32 API thread support.

nks
Novell Kernel Services thread support.

论坛徽章:
0
8 [报告]
发表于 2011-06-23 09:40 |只看该作者
--with-cpu=cpu
--with-cpu-32=cpu
--with-cpu-64=cpu
Specify which cpu variant the compiler should generate code for by default. cpu will be used as the default value of the -mcpu= switch. This option is only supported on some targets, including ARM, i386, M68k, PowerPC, and SPARC. The --with-cpu-32 and --with-cpu-64 options specify separate default CPUs for 32-bit and 64-bit modes; these options are only supported for i386, x86-64 and PowerPC.

论坛徽章:
0
9 [报告]
发表于 2011-06-23 12:03 |只看该作者
这里的--with-cpu-64=cpu怎么配?

论坛徽章:
0
10 [报告]
发表于 2011-06-23 12:12 |只看该作者
谁知道?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP