summaryrefslogtreecommitdiffstats
path: root/package/libcap/libcap.mk
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2010-12-28 16:55:35 -0300
committerPeter Korsgaard <jacmet@sunsite.dk>2010-12-29 09:22:01 +0100
commit0c4cf012fa0a772546971625204caa13840ffa9d (patch)
tree71ae53d08edd1774c8d72aec786c3bd7fb83fbaa /package/libcap/libcap.mk
parent10d23ec6b38449e65293f0e249975b8eb814dcff (diff)
downloadbuildroot-novena-0c4cf012fa0a772546971625204caa13840ffa9d.tar.gz
buildroot-novena-0c4cf012fa0a772546971625204caa13840ffa9d.zip
libcap: fix target install
/usr/lib/libcap.so.* was installed via "install -D" but libcap.so.2 is a symlink so it was dereferenced. Also update the buildsystem patch so that the shared lib is +X. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/libcap/libcap.mk')
-rw-r--r--package/libcap/libcap.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/libcap/libcap.mk b/package/libcap/libcap.mk
index 301d1b1fa..d4f8f1739 100644
--- a/package/libcap/libcap.mk
+++ b/package/libcap/libcap.mk
@@ -12,7 +12,8 @@ define LIBCAP_INSTALL_STAGING_CMDS
endef
define LIBCAP_INSTALL_TARGET_CMDS
- install -D $(STAGING_DIR)/usr/lib/libcap.so.* $(TARGET_DIR)/usr/lib
+ $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) LIBATTR=no DESTDIR=$(TARGET_DIR) prefix=/usr lib=lib install
+ rm -f $(addprefix $(TARGET_DIR)/usr/sbin/,capsh getpcaps)
endef
define HOST_LIBCAP_BUILD_CMDS