package/netdata: link with libatomic when needed
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Mon, 30 Mar 2020 21:07:50 +0000 (23:07 +0200)
committerPeter Korsgaard <peter@korsgaard.com>
Fri, 3 Apr 2020 07:53:06 +0000 (09:53 +0200)
netdata uses __atomic_fetch_add_2

Fixes:
 - http://autobuild.buildroot.org/results/1eb033ba7bf85ba3e25572a106f08faf49cd05b2

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/netdata/netdata.mk

index d169881a9cc56d64cc98b71a3373e85c059b8c34..529eb24e9cc34458076ac9dd1c7e5fedbe6a0cfb 100644 (file)
@@ -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