LinuxSir.cn,穿越时空的Linuxsir!

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

LFS7.0 第5.5节GCC-4.6.1-Pass1 最后一步,建立了一个链接,那还删不删除gcc-build ?

[复制链接]
发表于 2012-1-15 13:19:54 | 显示全部楼层 |阅读模式
LFS7.0手册原文
========
Compile GCC by running:

make

Compilation is now complete. At this point, the test suite would normally be run, but, as mentioned before, the test
suite framework is not in place yet. The benefits of running the tests at this point are minimal since the programs
from this first pass will soon be replaced.
Install the package:

make install

》》》》》》》》》》》》下面是我的问题所在,上面只是为了大家能联系上下文《《《《《《《《《《

Using --disable-shared means that the libgcc_eh.a file isn't created and installed. The Glibc package
depends on this library as it uses -lgcc_eh within its build system. This dependency can be satisfied by creating a
symlink to libgcc.a, since that file will end up containing the objects normally contained in libgcc_eh.a:

ln -vs libgcc.a `$LFS_TGT-gcc -print-libgcc-file-name | \
sed 's/libgcc/&_eh/'`

Details on this package are located in Section 6.17.2, “Contents of GCC.”
发表于 2012-1-16 09:55:55 | 显示全部楼层
要删。
ln -vs libgcc.a `$LFS_TGT-gcc -print-libgcc-file-name | sed 's/libgcc/&_eh/'`
你运行下$LFS_TGT-gcc -print-libgcc-file-name | sed 's/libgcc/&_eh/'就知道跟这gcc-build没半毛钱关系。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2012-1-16 20:27:52 | 显示全部楼层
嗯,看到GCC-Pass2时,把它删了。
你这么一说,我就放心了。

它建的这个链接位置我看不懂,要是 ln -sv ./abc /mnt/tools/ 这样我就懂了,只会看这样的,特别是还有 ` & 这样的符号,完全不懂 ,嘿嘿
回复 支持 反对

使用道具 举报

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

本版积分规则

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