libpwquality: Link with zlib when required in static builds

Fixes:

  http://autobuild.buildroot.net/results/cfb3a591391d90762a326d91af3ec502a6161ac5

Signed-off-by: Stefan Sørensen <stefan.sorensen@spectralink.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
Stefan Sørensen 2017-07-05 12:45:18 +02:00 committed by Thomas Petazzoni
parent 719726af2e
commit d0ad066e4a

View File

@ -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