mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-26 03:50:44 -09:00
package/busybox: fix build with glibc 2.39
When glibc was bumped to version 2.39 in commitb5680f53d6, it removed the deprecated libcrypt support. Until the upgrade of glibc to 2.39, Busybox could rely on the libcrypt provided by glibc. Since version 2.39, glibc no longer provides libcrypt, causing a build failure with Busybox configurations that have CONFIG_USE_BB_CRYPT disabled. To fix this, add the libxcrypt dependency to Busybox when BR2_PACKAGE_LIBXCRYPT is selected. The user is still responsible for enabling BR2_PACKAGE_LIBXCRYPT when their Busybox configuration has CONFIG_USE_BB_CRYPT disabled. Signed-off-by: Fred Lefranc <fred.lefranc+evs@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> (cherry picked from commita22f17881c) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
b10a791c08
commit
029a906053
@@ -164,6 +164,10 @@ define BUSYBOX_SET_MDEV
|
||||
endef
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBXCRYPT),y)
|
||||
BUSYBOX_DEPENDENCIES += libxcrypt
|
||||
endif
|
||||
|
||||
# sha passwords need USE_BB_CRYPT_SHA
|
||||
ifeq ($(BR2_TARGET_GENERIC_PASSWD_SHA256)$(BR2_TARGET_GENERIC_PASSWD_SHA512),y)
|
||||
define BUSYBOX_SET_CRYPT_SHA
|
||||
|
||||
Reference in New Issue
Block a user