diff --git a/package/apg/Config.in b/package/apg/Config.in index 94c286a178..f54ffdba39 100644 --- a/package/apg/Config.in +++ b/package/apg/Config.in @@ -1,5 +1,6 @@ config BR2_PACKAGE_APG bool "apg" + select BR2_PACKAGE_LIBXCRYPT if BR2_TOOLCHAIN_USES_GLIBC help Automated Password Generator (APG). diff --git a/package/apg/apg.mk b/package/apg/apg.mk index 16661f4b8d..1929e21f58 100644 --- a/package/apg/apg.mk +++ b/package/apg/apg.mk @@ -9,6 +9,10 @@ APG_SITE = $(call github,wilx,apg,v$(APG_VERSION)) APG_LICENSE = BSD-3-Clause APG_LICENSE_FILES = COPYING +ifeq ($(BR2_PACKAGE_LIBXCRYPT),y) +APG_DEPENDENCIES += libxcrypt +endif + define APG_BUILD_CMDS $(MAKE) $(TARGET_CONFIGURE_OPTS) FLAGS="$(TARGET_CFLAGS)" -C $(@D) endef