diff mbox series

[oe,meta-webserver,08/12] netdata: Link with libpthread

Message ID 20190306054548.16430-8-raj.khem@gmail.com
State New
Headers show
Series [oe,meta-oe,01/12] poco: Backport riscv support patch | expand

Commit Message

Khem Raj March 6, 2019, 5:45 a.m. UTC
Fixes
global_statistics.c:90: undefined reference to `__atomic_fetch_add_2'
| collect2: error: ld returned 1 exit status

Signed-off-by: Khem Raj <raj.khem@gmail.com>

---
 meta-webserver/recipes-webadmin/netdata/netdata_git.bb | 2 ++
 1 file changed, 2 insertions(+)

-- 
2.21.0

-- 
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
diff mbox series

Patch

diff --git a/meta-webserver/recipes-webadmin/netdata/netdata_git.bb b/meta-webserver/recipes-webadmin/netdata/netdata_git.bb
index b0f1602528..390fa4ba9b 100644
--- a/meta-webserver/recipes-webadmin/netdata/netdata_git.bb
+++ b/meta-webserver/recipes-webadmin/netdata/netdata_git.bb
@@ -27,6 +27,8 @@  DEPENDS += "zlib util-linux"
 
 inherit pkgconfig autotools useradd systemd
 
+LDFLAGS += "-pthread"
+
 #systemd
 SYSTEMD_PACKAGES = "${PN}"
 SYSTEMD_SERVICE_${PN} = "netdata.service"