[Buildroot] [git commit] liblo: link with libatomic when available

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sun Feb 25 20:54:47 UTC 2018

commit: https://git.buildroot.net/buildroot/commit/?id=e44ae2afe7f39240ce5c17a104f73f3b4e492b64
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

liblo uses atomic builtins that are only available inside libatomic on
some architectures, so link with it when available.



Signed-off-by: Alex Baldwin <alexbaldwinmusic at gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
 package/liblo/liblo.mk | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/package/liblo/liblo.mk b/package/liblo/liblo.mk
index c7d163dae2..7845c68ff2 100644
--- a/package/liblo/liblo.mk
+++ b/package/liblo/liblo.mk
@@ -17,4 +17,10 @@ LIBLO_CONF_OPTS += \
 	--disable-ipv6 \
+# Liblo uses atomic builtins, so we need to link with libatomic for
+# the architectures who explicitly need libatomic.
+LIBLO_CONF_ENV += LIBS="-latomic"
 $(eval $(autotools-package))

More information about the buildroot mailing list