summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--package/util-linux/Config.in10
1 files changed, 9 insertions, 1 deletions
diff --git a/package/util-linux/Config.in b/package/util-linux/Config.in
index d2a925c1bb..80aab881a0 100644
--- a/package/util-linux/Config.in
+++ b/package/util-linux/Config.in
@@ -330,10 +330,18 @@ config BR2_PACKAGE_UTIL_LINUX_SETTERM
config BR2_PACKAGE_UTIL_LINUX_SU
bool "su"
- depends on BR2_USE_MMU # fork()
+ depends on (BR2_ENABLE_LOCALE && BR2_USE_WCHAR) # linux-pam
+ depends on !BR2_STATIC_LIBS
+ depends on !BR2_TOOLCHAIN_USES_MUSL # linux-pam
+ depends on BR2_USE_MMU # fork(), linux-pam
+ select BR2_PACKAGE_LINUX_PAM
help
Run a command with substitute user and group ID
+comment "su needs a uClibc or glibc toolchain w/ wchar, locale, dynamic library"
+ depends on !(BR2_ENABLE_LOCALE && BR2_USE_WCHAR) \
+ || BR2_STATIC_LIBS || BR2_TOOLCHAIN_USES_MUSL
+
config BR2_PACKAGE_UTIL_LINUX_SULOGIN
bool "sulogin"
depends on BR2_USE_MMU # fork()
OpenPOWER on IntegriCloud