mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-01 06:21:56 -09:00
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>
This commit is contained in:
committed by
Peter Korsgaard
parent
043ba78869
commit
c4c914552e
@@ -25,9 +25,15 @@ endef
|
|||||||
define LIBCAP_INSTALL_TARGET_CMDS
|
define LIBCAP_INSTALL_TARGET_CMDS
|
||||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) LIBATTR=no DESTDIR=$(TARGET_DIR) \
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) LIBATTR=no DESTDIR=$(TARGET_DIR) \
|
||||||
prefix=/usr lib=lib install
|
prefix=/usr lib=lib install
|
||||||
rm -f $(addprefix $(TARGET_DIR)/usr/sbin/,capsh getpcaps)
|
|
||||||
endef
|
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
|
define HOST_LIBCAP_BUILD_CMDS
|
||||||
$(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) LIBATTR=no
|
$(HOST_MAKE_ENV) $(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) LIBATTR=no
|
||||||
endef
|
endef
|
||||||
|
|||||||
Reference in New Issue
Block a user