From: Fabrice Fontaine Date: Sun, 21 Feb 2021 20:29:44 +0000 (+0100) Subject: package/elfutils: link with libatomic if needed X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=51b5df23b2019eb9da1fc2ceb43c518dc79f1378;p=buildroot.git package/elfutils: link with libatomic if needed Fix build of elfutils 0.181 with Bootlin SPARC uclibc toolchain added with commit 1348c569d0cb7f67eca30f170b782aa8b51cc259 Fixes: - http://autobuild.buildroot.org/results/31ce9e3861c6229a7869a15d322f5d2f5bfc6165 Signed-off-by: Fabrice Fontaine Signed-off-by: Yann E. MORIN --- diff --git a/package/elfutils/elfutils.mk b/package/elfutils/elfutils.mk index 3d37c4634b..42f2f8b304 100644 --- a/package/elfutils/elfutils.mk +++ b/package/elfutils/elfutils.mk @@ -43,6 +43,10 @@ ELFUTILS_CONF_ENV += \ ELFUTILS_LDFLAGS = $(TARGET_LDFLAGS) \ $(TARGET_NLS_LIBS) +ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y) +ELFUTILS_LDFLAGS += -latomic +endif + ifeq ($(BR2_TOOLCHAIN_USES_GLIBC),) ELFUTILS_DEPENDENCIES += musl-fts ELFUTILS_LDFLAGS += -lfts