]> code.ossystems Code Review - openembedded-core.git/commitdiff
libcap-ng: undefined reference to `pthread_atfork'
authorTrevor Woerner <twoerner@gmail.com>
Mon, 28 Oct 2019 03:13:13 +0000 (23:13 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 31 Oct 2019 16:07:11 +0000 (16:07 +0000)
Some hosts need -pthread in order to link properly (e.g. openSUSE 15.1).

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-support/libcap-ng/libcap-ng_0.7.10.bb

index 6e6de454940c9b47715c85452db3de1da9b91fb9..a9a046571fa1432cfdce432867af35821b93a667 100644 (file)
@@ -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"