LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1200|回复: 3

--with-local-prefix的含义?

[复制链接]
发表于 2006-8-13 21:30:31 | 显示全部楼层 |阅读模式
在生成工具链时, 配置GCC的命令行为:
×××××××××××××××××××××××××××××××××××××
../gcc-4.0.3/configure --prefix=/tools \
--with-local-prefix=/tools --disable-nls --enable-shared \
--enable-languages=c
×××××××××××××××××××××××××××××××××××××
对其中的--with-local-prefix=/tools参数有点疑问。
在LFS上说是为了“remove /usr/local/include from gcc's include search path.“”
在GCCreferenceManual上说“The default is /usr/local. This is the prefix of the include directory that will besearched by the compiler for locally installed include files.”
我想知道,这个参数是设置当前编译器(用来编译gcc源码的已有编译器)的搜索路径,还是设置所生成GCC编译器的头文件搜索路径?
 楼主| 发表于 2006-8-13 22:53:16 | 显示全部楼层
搞明白了,是生成的编译器的搜索路径。
不过就是在Makefile和Configure脚本文件中都找不到对这个参数的处理代码,比较烦。
回复 支持 反对

使用道具 举报

发表于 2006-8-14 03:37:48 | 显示全部楼层
看看 gcc 目录里边的 configure 文件是否处理了这个参数呢?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-14 15:32:53 | 显示全部楼层
我没有找到是哪一段代码处理了这个参数,能否指点一下?谢谢
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表