Bug 238514

Summary: Adding -flto into compilation/link lines causes the error: /usr/bin/ld: unrecognized option '-plugin'
Product: Base System Reporter: Yuri Victorovich <yuri>
Component: miscAssignee: freebsd-toolchain mailing list <toolchain>
Status: New ---    
Severity: Affects Only Me CC: dim
Priority: ---    
Version: 12.0-RELEASE   
Hardware: Any   
OS: Any   

Comment 1 Mark Linimon freebsd_committer freebsd_triage 2019-06-12 09:06:45 UTC
Assign to toolchain@, and thus, remove the now-redundant tag.
Comment 2 Dimitry Andric freebsd_committer 2019-06-12 10:54:44 UTC
This is because 11.2 and 12.0 i386 are still on BFD ld 2.17.50, which neither supports LTO, nor plugins.  It's probably best to leave off -flto for these platforms, otherwise use lld or the binutils port.
Comment 3 Conrad Meyer freebsd_committer 2019-06-12 14:35:11 UTC
[Not CURRENT]