aboutsummaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorGravatar Fabrice Fontaine <fontaine.fabrice@gmail.com>2021-02-21 21:14:52 +0100
committerGravatar Yann E. MORIN <yann.morin.1998@free.fr>2021-02-25 22:27:20 +0100
commitc79f050de7ae5cd63ea3bfc8be3896a539ce9103 (patch)
tree8db0d9e9d592aa348e2f90caecd95f11a56d041c /package
parent51b5df23b2019eb9da1fc2ceb43c518dc79f1378 (diff)
downloadbuildroot-c79f050de7ae5cd63ea3bfc8be3896a539ce9103.tar.gz
buildroot-c79f050de7ae5cd63ea3bfc8be3896a539ce9103.tar.bz2
package/babeltrace2: link with libatomic if needed
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>
Diffstat (limited to 'package')
-rw-r--r--package/babeltrace2/babeltrace2.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/babeltrace2/babeltrace2.mk b/package/babeltrace2/babeltrace2.mk
index eb29a5928b..1e03f5fdd2 100644
--- a/package/babeltrace2/babeltrace2.mk
+++ b/package/babeltrace2/babeltrace2.mk
@@ -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))