]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: makefile: never force -latomic, set USE_LIBATOMIC instead
authorWilly Tarreau <w@1wt.eu>
Wed, 21 Dec 2022 09:46:07 +0000 (10:46 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 23 Dec 2022 15:53:35 +0000 (16:53 +0100)
commitb16d9b5816cf553e8ea15a965fcd6079351a144b
tree4c3e7b6c9d2430c40c46a8297f64430954bef82a
parent447247aa8d2fc5a2b2f8168ec353958971663fcb
BUILD: makefile: never force -latomic, set USE_LIBATOMIC instead

Two places, 51Dv4 and AIX7.2, used to forcefully add -latomic to the
ldflags (and via different variables). This must not be done because
it depends on compiler, arch, etc. USE_LIBATOMIC=implicit is much
better: it allows the user to forcefully disable it if undesired.
The LIBATOMIC_LDFLAGS are set to -latomic and automatically added
to OPTIONS_LDFLAGS.

It will make this dependency appear in haproxy -vv but that's not
and issue and it may even sometimes help when troubleshooting.
Makefile