From: Fabrice Fontaine Date: Mon, 30 Mar 2020 21:07:50 +0000 (+0200) Subject: package/netdata: link with libatomic when needed X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d7bd6520810d2a4e955ff5a30b6f35db50a1ca83;p=buildroot.git package/netdata: link with libatomic when needed netdata uses __atomic_fetch_add_2 Fixes: - http://autobuild.buildroot.org/results/1eb033ba7bf85ba3e25572a106f08faf49cd05b2 Signed-off-by: Fabrice Fontaine Signed-off-by: Peter Korsgaard --- diff --git a/package/netdata/netdata.mk b/package/netdata/netdata.mk index d169881a9c..529eb24e9c 100644 --- a/package/netdata/netdata.mk +++ b/package/netdata/netdata.mk @@ -47,6 +47,10 @@ else NETDATA_CONF_OPTS += --disable-https endif +ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y) +NETDATA_CONF_ENV += LIBS=-latomic +endif + define NETDATA_INSTALL_INIT_SYSV $(INSTALL) -D -m 755 package/netdata/S60netdata \ $(TARGET_DIR)/etc/init.d/S60netdata