Hi Thomas, On Fri, Nov 22, 2019 at 10:55:35AM +0100, Thomas Petazzoni wrote: > Signed-off-by: Thomas Petazzoni <thomas.petazz...@bootlin.com> > --- > package/utils/busybox/Makefile | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git a/package/utils/busybox/Makefile b/package/utils/busybox/Makefile > index c0f3007e5d..bad4598525 100644 > --- a/package/utils/busybox/Makefile > +++ b/package/utils/busybox/Makefile > @@ -17,7 +17,7 @@ PKG_SOURCE_URL:=https://www.busybox.net/downloads \ > http://sources.buildroot.net > PKG_HASH:=d0f940a72f648943c1f2211e0e3117387c31d765137d92bd8284a3fb9752a998 > > -PKG_BUILD_DEPENDS:=BUSYBOX_CONFIG_PAM:libpam > +PKG_BUILD_DEPENDS:=BUSYBOX_CONFIG_PAM:libpam > BUSYBOX_CONFIG_SELINUX:libselinux > PKG_BUILD_PARALLEL:=1 > PKG_CHECK_FORMAT_SECURITY:=0 > > @@ -45,7 +45,7 @@ define Package/busybox > MAINTAINER:=Felix Fietkau <n...@nbd.name> > TITLE:=Core utilities for embedded Linux > URL:=http://busybox.net/ > - DEPENDS:=+BUSYBOX_CONFIG_PAM:libpam +BUSYBOX_CONFIG_NTPD:jsonfilter > + DEPENDS:=+BUSYBOX_CONFIG_PAM:libpam +BUSYBOX_CONFIG_NTPD:jsonfilter > +BUSYBOX_CONFIG_SELINUX:libselinux > MENU:=1 > endef > > @@ -76,6 +76,9 @@ LDLIBS += $(call BUSYBOX_IF_ENABLED,PAM,pam pam_misc > pthread) > ifeq ($(CONFIG_USE_GLIBC),y) > LDLIBS += $(call BUSYBOX_IF_ENABLED,NSLOOKUP_OPENWRT,resolv) > endif > +ifeq ($(CONFIG_BUSYBOX_CONFIG_SELINUX),y) > + LDLIBS += selinux sepol > +endif
also here, it would be better to have a build-variant of busybox with has selinux enabled instead of a buildroot compile option. Cheers Daniel > > TARGET_CFLAGS += -flto > TARGET_LDFLAGS += -flto=jobserver -fuse-linker-plugin > -- > 2.23.0 > > > _______________________________________________ > openwrt-devel mailing list > openwrt-devel@lists.openwrt.org > https://lists.openwrt.org/mailman/listinfo/openwrt-devel _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel