0

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 Answers2

1

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

GreenReaper
  • 1,121
  • 1
  • 15
  • 23
0

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.

arrowd
  • 33,231
  • 8
  • 79
  • 110