[cfe-commits] Patch to support gold on FreeBSD
Stephen Checkoway
s at pahtak.org
Tue Jul 31 01:06:24 PDT 2012
devel/binutils in FreeBSD's ports builds gold which it installs as /usr/local/bin/ld.gold. The attached patch enables LTO on FreeBSD in a manner similar to Linux. Namely, it passes -plugin /path/to/LLVMgold.so to the linker.
In addition, if gold has been specified, it uses ld.gold, rather than ld. I'm not sure if that part is appropriate or not since nothing else switches linkers based on LTO.
--
Stephen Checkoway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: FreeBSD-native-LLVM-support.diff
Type: application/octet-stream
Size: 2317 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120731/359a3efb/attachment.obj>
-------------- next part --------------
More information about the cfe-commits
mailing list