diff --git a/package/thttpd/Config.in b/package/thttpd/Config.in index 66537aa270..bd97bc7a75 100644 --- a/package/thttpd/Config.in +++ b/package/thttpd/Config.in @@ -1,6 +1,7 @@ config BR2_PACKAGE_THTTPD bool "thttpd" depends on BR2_USE_MMU # fork() + select BR2_PACKAGE_LIBXCRYPT if BR2_TOOLCHAIN_USES_GLIBC help thttpd is a simple, small, portable, fast, and secure HTTP server diff --git a/package/thttpd/thttpd.mk b/package/thttpd/thttpd.mk index 3815705b58..d9cb5c9071 100644 --- a/package/thttpd/thttpd.mk +++ b/package/thttpd/thttpd.mk @@ -12,6 +12,10 @@ THTTPD_CPE_ID_VENDOR = acme THTTPD_MAKE = $(MAKE1) +ifeq ($(BR2_PACKAGE_LIBXCRYPT),y) +THTTPD_DEPENDENCIES += libxcrypt +endif + define THTTPD_INSTALL_TARGET_CMDS $(INSTALL) -D -m 0755 $(@D)/thttpd $(TARGET_DIR)/usr/sbin/thttpd $(INSTALL) -D -m 0755 $(@D)/extras/htpasswd $(TARGET_DIR)/usr/bin/htpasswd