[Bug 238514] Adding -flto into compilation/link lines causes the error: /usr/bin/ld: unrecognized option '-plugin'

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Jun 12 10:54:46 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238514

Dimitry Andric <dim at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dim at FreeBSD.org

--- Comment #2 from Dimitry Andric <dim at FreeBSD.org> ---
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-toolchain mailing list