diff --git a/package/openrc/Config.in b/package/openrc/Config.in index adc61d2546..42d7347b0e 100644 --- a/package/openrc/Config.in +++ b/package/openrc/Config.in @@ -7,6 +7,7 @@ config BR2_PACKAGE_OPENRC select BR2_PACKAGE_BUSYBOX_SHOW_OTHERS # kmod tools select BR2_PACKAGE_KMOD # runtime select BR2_PACKAGE_KMOD_TOOLS # runtime + select BR2_PACKAGE_LIBXCRYPT if BR2_TOOLCHAIN_USES_GLIBC select BR2_PACKAGE_NCURSES help Init that works on top of pid 1 (for example diff --git a/package/openrc/openrc.mk b/package/openrc/openrc.mk index f8e51f6720..69f5b3a121 100644 --- a/package/openrc/openrc.mk +++ b/package/openrc/openrc.mk @@ -33,6 +33,10 @@ else OPENRC_CONF_OPTS += -Dselinux=disabled endif +ifeq ($(BR2_PACKAGE_LIBXCRYPT),y) +OPENRC_DEPENDENCIES += libxcrypt +endif + ifeq ($(BR2_PACKAGE_LINUX_PAM),y) OPENRC_CONF_OPTS += -Dpam=true OPENRC_DEPENDENCIES += linux-pam