问题描述
我正在试用Gold Linker,以查看它是否可以改善我们应用程序的链接时间.而且确实如此.有时,我需要使用GNU Linker.我将如何去做?
I'm trying out the Gold Linker to see if it will improve link time of our application. And it does, significantly. Occasionally, I need to use the GNU Linker. How would I go about doing this?
我正在使用Ubuntu 10.04,并且从软件包管理器安装了Gold Linker.
I am using Ubuntu 10.04 and I installed the Gold Linker from the package manager.
谢谢
推荐答案
/usr/bin/ld只是与实际链接器所在位置的符号链接.检查并确保系统上的/usr/bin/ld只是指向ld.gold的符号链接.如果是这样,则只需执行ln -sf ld.bfd/usr/bin/ld
/usr/bin/ld is just a symlink to whichever your actual linker is. Check to make sure that /usr/bin/ld on your system is just a symlink to ld.gold. If it is, then you can just do ln -sf ld.bfd /usr/bin/ld
这篇关于在Ubuntu上临时禁用Gold Linker的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!