]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
config/libatomic: require -latomic iff atomic.c doesn't link w/o it
authorнаб <nabijaczleweli@nabijaczleweli.xyz>
Tue, 13 Jul 2021 20:50:48 +0000 (22:50 +0200)
committerTony Hutter <hutter2@llnl.gov>
Tue, 14 Sep 2021 19:38:51 +0000 (12:38 -0700)
commit968dc135728dcc9d4919b57408049a4d8bfcdfc2
tree383515967a9dd410f00162277da8eac86c47c236
parent960a5a557b58d09d43b9e6c361a8f88639d46fcb
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
config/user-libatomic.m4