HomeFreeBSD

config/libatomic: require -latomic iff atomic.c doesn't link w/o it

Description

config/libatomic: require -latomic iff atomic.c doesn't link w/o it

In absence of LTO, and dynamic libatomic, la.so ends up in the needs
section of every toolchain executable; some consider this an issue.

Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #12345
Closes #12359

Details

Provenance
наб <nabijaczleweli@nabijaczleweli.xyz>Authored on Jul 13 2021, 8:50 PM
GitHub <noreply@github.com>Committed on Jul 13 2021, 8:50 PM
Parents
rG1325434b2d75: Tinker with slop space accounting with dedup
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGd9f0f1582c4b: config/libatomic: require -latomic iff atomic.c doesn't link w/o it (authored by наб <nabijaczleweli@nabijaczleweli.xyz>).Jul 13 2021, 8:50 PM