From: Stefan Sørensen Date: Wed, 5 Jul 2017 10:45:18 +0000 (+0200) Subject: libpwquality: Link with zlib when required in static builds X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d0ad066e4a4524375c13564be99aa779d24d1b73;p=buildroot.git libpwquality: Link with zlib when required in static builds Fixes: http://autobuild.buildroot.net/results/cfb3a591391d90762a326d91af3ec502a6161ac5 Signed-off-by: Stefan Sørensen Signed-off-by: Thomas Petazzoni --- diff --git a/package/libpwquality/libpwquality.mk b/package/libpwquality/libpwquality.mk index 66b15d805b..697af0b0b2 100644 --- a/package/libpwquality/libpwquality.mk +++ b/package/libpwquality/libpwquality.mk @@ -27,6 +27,11 @@ else LIBPWQUALITY_CONF_OPTS += --disable-pam endif +# Static link with cracklib requires -lz if zlib is enabled +ifeq ($(BR2_STATIC_LIBS)$(BR2_PACKAGE_ZLIB),yy) +LIBPWQUALITY_CONF_ENV += LIBS="-lz" +endif + ifeq ($(BR2_PACKAGE_LIBPWQUALITY_TOOLS),) define LIBPWQUALITY_REMOVE_TOOLS rm -f $(TARGET_DIR)/usr/bin/pwmake