package/babeltrace2: link with libatomic if needed

Fix build of babeltrace2 in version 2.0.3 with Bootlin SPARC uclibc
toolchain added with commit 1348c569d0

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>
This commit is contained in:
Fabrice Fontaine 2021-02-21 21:14:52 +01:00 committed by Yann E. MORIN
parent 51b5df23b2
commit c79f050de7

View 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))