From d0ad066e4a4524375c13564be99aa779d24d1b73 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stefan=20S=C3=B8rensen?= Date: Wed, 5 Jul 2017 12:45:18 +0200 Subject: [PATCH] libpwquality: Link with zlib when required in static builds MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes: http://autobuild.buildroot.net/results/cfb3a591391d90762a326d91af3ec502a6161ac5 Signed-off-by: Stefan Sørensen Signed-off-by: Thomas Petazzoni --- package/libpwquality/libpwquality.mk | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.30.2