@@ -6,6 +6,7 @@ config BR2_PACKAGE_LIGHTTPD
bool "lighttpd"
depends on BR2_USE_MMU # fork()
depends on !BR2_STATIC_LIBS
+ select BR2_PACKAGE_LIBXCRYPT if BR2_TOOLCHAIN_USES_GLIBC
select BR2_PACKAGE_XXHASH
help
lighttpd a secure, fast, compliant and very flexible
@@ -30,6 +30,10 @@ LIGHTTPD_CONF_OPTS = \
-Dbuild_static=false \
-Dmoduledir=lib/lighttpd
+ifeq ($(BR2_PACKAGE_LIBXCRYPT),y)
+LIGHTTPD_DEPENDENCIES += libxcrypt
+endif
+
ifeq ($(BR2_PACKAGE_LIGHTTPD_BROTLI),y)
LIGHTTPD_DEPENDENCIES += brotli
LIGHTTPD_CONF_OPTS += -Dwith_brotli=enabled
When glibc was bumped to version 2.39 in commit b5680f53d60acf8ff6010082f873438a39bd5d97 it removed the deprecated libcrypt support. As glibc's libcrypt was providing lighttpd's libcrypt dependency this broke the lighttpd build using glibc version 2.39. To fix this select the libxcrypt dependency to lighttpd when using a glibc toolchain and add the dependency if selected. Signed-off-by: Bernd Kuhls <bernd@kuhls.net> --- package/lighttpd/Config.in | 1 + package/lighttpd/lighttpd.mk | 4 ++++ 2 files changed, 5 insertions(+)