From e44ae2afe7f39240ce5c17a104f73f3b4e492b64 Mon Sep 17 00:00:00 2001 From: Alex Baldwin Date: Sun, 25 Feb 2018 15:40:34 +0100 Subject: [PATCH] liblo: link with libatomic when available liblo uses atomic builtins that are only available inside libatomic on some architectures, so link with it when available. Fixes: http://autobuild.buildroot.net/results/c8bed3a3fa7d2b2258f573cbfcb01af07419e0bf/ Signed-off-by: Alex Baldwin Signed-off-by: Thomas Petazzoni --- 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 \ --disable-werror +# Liblo uses atomic builtins, so we need to link with libatomic for +# the architectures who explicitly need libatomic. +ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y) +LIBLO_CONF_ENV += LIBS="-latomic" +endif + $(eval $(autotools-package)) -- 2.30.2