Building Gold linker in FreeBSD

坚强是说给别人听的谎言 提交于 2020-01-06 19:06:17

问题


I followed the steps on http://llvm.org/docs/GoldPlugin.html#lto-how-to-build to build the gold plugin on FreeBSD but !

Heres a link to the screenshot of the error:http://postimg.org/image/anlpuufbl/

This is the error message that it shows and so I am also unable to get ld-new. I checked and no CFLAGS were set in etc/make.conf.

How to proceed with the installation? I am using the deault clang version supplied with FreeBSD 10.1.


回答1:


I think you just need to install devel/binutils port or its package. It contains gold linker under ld.gold name, which should work with LLVM plugin.




回答2:


You may need LDFLAGS=-fuse-ld=gold -flto in /etc/make.conf



来源:https://stackoverflow.com/questions/30540926/building-gold-linker-in-freebsd

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!