Skip to contentSkip to conversation

dibbler: Add libpthread to linker flags

PATCH New Khem Raj 1 participant 1 message May 3, 2021

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 dibbler: Add libpthread to linker flags

Fixed build issue
lowlevel-linux-link-state.c:(.text+0x450): undefined reference to `pthread_create'
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)

---
 meta-networking/recipes-connectivity/dibbler/dibbler_git.bb | 2 ++
 1 file changed, 2 insertions(+)
meta-networking/recipes-connectivity/dibbler/dibbler_git.bb +2 -0
index c2f4827161..b19364e1e2 100644
@@ -29,6 +29,8 @@ inherit autotools
 
 DEPENDS += "flex-native"
 
+LDFLAGS += "-pthread"
+
 PACKAGES =+ "${PN}-requestor ${PN}-client ${PN}-relay ${PN}-server"
 
 FILES_${PN}-client = "${sbindir}/${PN}-client"
Signature · 1 line
2.31.1