Skip to contentSkip to conversation

libcap-ng: undefined reference to `pthread_atfork'

PATCH New Trevor Woerner 1 participant 1 message Oct 28, 2019

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 libcap-ng: undefined reference to `pthread_atfork'

Some hosts need -pthread in order to link properly (e.g. openSUSE 15.1).

---
changes from v1:
- replaced "-lpthread" with "-pthread"

 meta/recipes-support/libcap-ng/libcap-ng_0.7.10.bb | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-support/libcap-ng/libcap-ng_0.7.10.bb +1 -0
index 6e6de45494..a9a046571f 100644
@@ -3,6 +3,7 @@ require libcap-ng.inc
 inherit lib_package autotools
 
 EXTRA_OECONF += "--without-python --without-python3"
+LDFLAGS_append_class-native = " -pthread"
 
 BBCLASSEXTEND = "native nativesdk"
 
Signature · 1 line
2.23.0.37.g745f681289