summaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2012-12-10 04:43:04 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2012-12-19 15:12:29 +0100
commitc4c914552e4fba8139e74d90a26bbba5048d6492 (patch)
treeae67e4839e85c876d5099655b29521631a65d2d8 /package
parent043ba78869b09da6f1bfa0daaa66fc0960163371 (diff)
downloadbuildroot-novena-c4c914552e4fba8139e74d90a26bbba5048d6492.tar.gz
buildroot-novena-c4c914552e4fba8139e74d90a26bbba5048d6492.zip
libcap: disable programs
Disable libcap programs since they use fork and fail on !MMU systems. They're not usually used, if someone wants them they can add an option. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package')
-rw-r--r--package/libcap/libcap.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/package/libcap/libcap.mk b/package/libcap/libcap.mk
index b922e5a98..94a0cbb8e 100644
--- a/package/libcap/libcap.mk
+++ b/package/libcap/libcap.mk
@@ -25,9 +25,15 @@ endef
define LIBCAP_INSTALL_TARGET_CMDS
$(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
+# progs use fork()
+define LIBCAP_DISABLE_PROGS
+ $(SED) '/-C progs/d' $(@D)/Makefile
+endef
+
+LIBCAP_POST_PATCH_HOOKS += LIBCAP_DISABLE_PROGS
+
define HOST_LIBCAP_BUILD_CMDS
$(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) LIBATTR=no
endef