summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/libcap/libcap.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support/libcap/libcap.inc')
-rw-r--r--meta/recipes-support/libcap/libcap.inc15
1 files changed, 13 insertions, 2 deletions
diff --git a/meta/recipes-support/libcap/libcap.inc b/meta/recipes-support/libcap/libcap.inc
index 184b58a3e0..9418abf1e2 100644
--- a/meta/recipes-support/libcap/libcap.inc
+++ b/meta/recipes-support/libcap/libcap.inc
@@ -21,6 +21,8 @@ do_configure() {
21 sed -e 's,BUILD_CFLAGS ?=,BUILD_CFLAGS := $(BUILD_CFLAGS),' -i Make.Rules 21 sed -e 's,BUILD_CFLAGS ?=,BUILD_CFLAGS := $(BUILD_CFLAGS),' -i Make.Rules
22} 22}
23 23
24BUILD_LDFLAGS_virtclass_native += "-Wl,rpath=${base_libdir}"
25
24EXTRA_OEMAKE = " \ 26EXTRA_OEMAKE = " \
25 LIBATTR=yes \ 27 LIBATTR=yes \
26 PAM_CAP=${@base_contains('DISTRO_FEATURES', 'pam', 'yes', 'no', d)} \ 28 PAM_CAP=${@base_contains('DISTRO_FEATURES', 'pam', 'yes', 'no', d)} \
@@ -42,8 +44,17 @@ do_install() {
42 oe_runmake install DESTDIR="${D}" prefix="${prefix}" 44 oe_runmake install DESTDIR="${D}" prefix="${prefix}"
43} 45}
44 46
47do_install_append() {
48 # Move the library to base_libdir
49 install -d ${D}${base_libdir}
50 mv ${D}${libdir}/* ${D}${base_libdir}
51 rmdir ${D}${libdir}
52}
53
54FILES_${PN}-dev += "${base_libdir}/*.so"
55
45# pam files 56# pam files
46FILES_${PN} += "${libdir}/security/*.so" 57FILES_${PN} += "${base_libdir}/security/*.so"
47FILES_${PN}-dbg += "${libdir}/security/.debug/*.so" 58FILES_${PN}-dbg += "${base_libdir}/security/.debug/*.so"
48 59
49BBCLASSEXTEND = "native" 60BBCLASSEXTEND = "native"