Bug 238514 - Adding -flto into compilation/link lines causes the error: /usr/bin/ld: unrecognized option '-plugin'
Summary: Adding -flto into compilation/link lines causes the error: /usr/bin/ld: unrec...
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: misc (show other bugs)
Version: 12.0-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-toolchain mailing list
Depends on:
Reported: 2019-06-12 06:29 UTC by Yuri Victorovich
Modified: 2019-06-12 14:35 UTC (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
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