Building Gold linker in FreeBSD

2019-09-11 01:55发布

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.

2条回答
不美不萌又怎样
2楼-- · 2019-09-11 02:19

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

查看更多
forever°为你锁心
3楼-- · 2019-09-11 02:29

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.

查看更多
登录 后发表回答