diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2014-05-05 23:17:07 +0200 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2014-05-05 23:53:06 +0200 |
commit | 43b1cd320991b1632972d343e8884ba5061fa7e2 (patch) | |
tree | 55ff25d810124ebb4e416ab35da910f5921f54e2 | |
parent | 7db35ffa811378b45e25eddeb7f084fe0387b4ea (diff) | |
download | buildroot-43b1cd320991b1632972d343e8884ba5061fa7e2.tar.gz buildroot-43b1cd320991b1632972d343e8884ba5061fa7e2.zip |
busybox: allow build with musl
The musl C library does not yet implemented the getpwent_r() function,
needed by the Busybox password code when CONFIG_USE_BB_PWD_GRP is
disabled. So we enable it when the musl C library is used.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r-- | package/busybox/busybox.mk | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/package/busybox/busybox.mk b/package/busybox/busybox.mk index 793ffb97aa..150100b978 100644 --- a/package/busybox/busybox.mk +++ b/package/busybox/busybox.mk @@ -153,6 +153,15 @@ define BUSYBOX_INTERNAL_SHADOW_PASSWORDS endef endif +# We also need to use internal functions when using the musl C +# library, since some of them are not yet implemented by musl. +ifeq ($(BR2_TOOLCHAIN_USES_MUSL),y) +define BUSYBOX_INTERNAL_SHADOW_PASSWORDS + $(call KCONFIG_ENABLE_OPT,CONFIG_USE_BB_PWD_GRP,$(BUSYBOX_BUILD_CONFIG)) + $(call KCONFIG_ENABLE_OPT,CONFIG_USE_BB_SHADOW,$(BUSYBOX_BUILD_CONFIG)) +endef +endif + ifeq ($(BR2_INIT_BUSYBOX),y) define BUSYBOX_SET_INIT $(call KCONFIG_ENABLE_OPT,CONFIG_INIT,$(BUSYBOX_BUILD_CONFIG)) |