From 1118f2c51c357d968e2d08e31ad3c741f5fa7df8 Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Sun, 26 Dec 2021 19:06:21 +0100 Subject: [PATCH] package/lttng-libust: set -DUATOMIC_NO_LINK_ERROR Set -DUATOMIC_NO_LINK_ERROR as suggested by upstream in https://www.mail-archive.com/lttng-dev@lists.lttng.org/msg12950.html to avoid the following build failure with lttng-tools raised since bump to version 2.13.1 in commit 733bf73e3ff86dd80e68e22c0ccc2f43e4a3d475: /home/buildroot/autobuild/instance-1/output-1/host/opt/ext-toolchain/bin/../lib/gcc/mips64el-buildroot-linux-gnu/9.3.0/../../../../mips64el-buildroot-linux-gnu/bin/ld: /home/buildroot/autobuild/instance-1/output-1/host/mips64el-buildroot-linux-gnu/sysroot/usr/lib/liblttng-ust-ctl.so: undefined reference to `_uatomic_link_error' Fixes: - http://autobuild.buildroot.org/results/066c72f04b4c82df3c5c6a75d2eef232d4468612 Signed-off-by: Fabrice Fontaine Signed-off-by: Thomas Petazzoni --- package/lttng-libust/lttng-libust.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/lttng-libust/lttng-libust.mk b/package/lttng-libust/lttng-libust.mk index 690d18fe3d..8ce47021c9 100644 --- a/package/lttng-libust/lttng-libust.mk +++ b/package/lttng-libust/lttng-libust.mk @@ -17,6 +17,8 @@ LTTNG_LIBUST_CONF_OPTS = \ --disable-tests \ --with-lttng-system-rundir=/run/lttng LTTNG_LIBUST_AUTORECONF = YES +# https://www.mail-archive.com/lttng-dev@lists.lttng.org/msg12950.html +LTTNG_LIBUST_CONF_ENV = CFLAGS="$(TARGET_CFLAGS) -DUATOMIC_NO_LINK_ERROR" ifeq ($(BR2_PACKAGE_PYTHON),y) LTTNG_LIBUST_DEPENDENCIES += python