summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/libcap-ng/libcap-ng.inc
diff options
context:
space:
mode:
authorChristopher Larson <chris_larson@mentor.com>2019-11-26 23:08:29 +0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-12-04 12:30:58 +0000
commit8f21b6d0d5d43c81c9cd992af94daf4e966dac76 (patch)
tree8e1e62f1a7a82bb0f99c2e49c20a1862813e7629 /meta/recipes-support/libcap-ng/libcap-ng.inc
parent1fb4aa42f9c3b9738d78d198ad695fe4fcb6dc2f (diff)
downloadpoky-8f21b6d0d5d43c81c9cd992af94daf4e966dac76.tar.gz
libcap-ng: add pthread library if header is found
If the pthread.h header is found, make sure library containing "pthread_atfork" is added to the list of libraries against which to link. On some hosts (e.g. openSUSE 15.1) "-lpthread" needs to be explicitly added in order for the code to compile correctly. We already had a workaround for this for native builds, but using some external toolchains, we can be bit by this for the target recipe as well. Most of this is courtesy Trevor Woerner <twoerner@gmail.com>, via his patch at stevegrubb/libcap-ng#10, the last thanks to Khem Raj. (From OE-Core rev: 8d84fdea1c26ed5f8f8261c89070df44da3f1855) Signed-off-by: Christopher Larson <chris_larson@mentor.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/libcap-ng/libcap-ng.inc')
-rw-r--r--meta/recipes-support/libcap-ng/libcap-ng.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-support/libcap-ng/libcap-ng.inc b/meta/recipes-support/libcap-ng/libcap-ng.inc
index aec83896e4..002915ad48 100644
--- a/meta/recipes-support/libcap-ng/libcap-ng.inc
+++ b/meta/recipes-support/libcap-ng/libcap-ng.inc
@@ -9,6 +9,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f \
9 9
10SRC_URI = "http://people.redhat.com/sgrubb/libcap-ng/libcap-ng-${PV}.tar.gz \ 10SRC_URI = "http://people.redhat.com/sgrubb/libcap-ng/libcap-ng-${PV}.tar.gz \
11 file://python.patch \ 11 file://python.patch \
12 file://0001-configure.ac-add-library-if-header-found.patch \
13 file://0002-Wrap-pthread_atfork-usage-in-HAVE_PTHREAD_H.patch \
12" 14"
13 15
14SRC_URI[md5sum] = "57dc267e2949cdecb651a929f9206572" 16SRC_URI[md5sum] = "57dc267e2949cdecb651a929f9206572"