package/babeltrace2: link with libatomic if needed
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 21 Feb 2021 20:14:52 +0000 (21:14 +0100)
committerYann E. MORIN <yann.morin.1998@free.fr>
Thu, 25 Feb 2021 21:27:20 +0000 (22:27 +0100)
Fix build of babeltrace2 in version 2.0.3 with Bootlin SPARC uclibc
toolchain added with commit 1348c569d0cb7f67eca30f170b782aa8b51cc259

Fixes:
 - http://autobuild.buildroot.org/results/31770bf70f9ce4e3be8fb310d084b214820c6829

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/babeltrace2/babeltrace2.mk

index eb29a5928b700ee822c9f948bd23c9a992c6cc60..1e03f5fdd29d6791982ad03f030c8bb63348eb7f 100644 (file)
@@ -27,5 +27,9 @@ else
 BABELTRACE2_CONF_OPTS += --disable-debug-info
 endif
 
+ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
+BABELTRACE2_CONF_ENV += LIBS=-latomic
+endif
+
 $(eval $(autotools-package))
 $(eval $(host-autotools-package))