Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH v2] libcap-ng: undefined reference to `pthread_atfork'
@ 2019-10-28  3:13 Trevor Woerner
  0 siblings, 0 replies; only message in thread
From: Trevor Woerner @ 2019-10-28  3:13 UTC (permalink / raw)
  To: openembedded-core

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

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
---
changes from v1:
	- replaced "-lpthread" with "-pthread"

 meta/recipes-support/libcap-ng/libcap-ng_0.7.10.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-support/libcap-ng/libcap-ng_0.7.10.bb b/meta/recipes-support/libcap-ng/libcap-ng_0.7.10.bb
index 6e6de45494..a9a046571f 100644
--- a/meta/recipes-support/libcap-ng/libcap-ng_0.7.10.bb
+++ b/meta/recipes-support/libcap-ng/libcap-ng_0.7.10.bb
@@ -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"
 
-- 
2.23.0.37.g745f681289



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-10-28  3:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-28  3:13 [PATCH v2] libcap-ng: undefined reference to `pthread_atfork' Trevor Woerner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox