mirror of
https://git.yoctoproject.org/poky
synced 2026-05-02 18:32:15 +02:00
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>
18 lines
476 B
BlitzBasic
18 lines
476 B
BlitzBasic
require libcap-ng.inc
|
|
|
|
inherit lib_package autotools
|
|
|
|
EXTRA_OECONF += "--without-python --without-python3"
|
|
|
|
BBCLASSEXTEND = "native nativesdk"
|
|
|
|
do_install_append() {
|
|
# Moving libcap-ng to base_libdir
|
|
if [ ! ${D}${libdir} -ef ${D}${base_libdir} ]; then
|
|
mkdir -p ${D}/${base_libdir}/
|
|
mv -f ${D}${libdir}/libcap-ng.so.* ${D}${base_libdir}/
|
|
relpath=${@os.path.relpath("${base_libdir}", "${libdir}")}
|
|
ln -sf ${relpath}/libcap-ng.so.0.0.0 ${D}${libdir}/libcap-ng.so
|
|
fi
|
|
}
|