From 169943e8d9170917e0f9f65177e1d9a497d691ee Mon Sep 17 00:00:00 2001 From: Fabrice Fontaine Date: Mon, 15 Aug 2022 18:48:11 +0200 Subject: [PATCH] package/lshw: add zlib optional dependency Signed-off-by: Fabrice Fontaine Signed-off-by: Yann E. MORIN --- package/lshw/lshw.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package/lshw/lshw.mk b/package/lshw/lshw.mk index bde23d1499..86c8f356cc 100644 --- a/package/lshw/lshw.mk +++ b/package/lshw/lshw.mk @@ -29,6 +29,13 @@ else LSHW_MAKE_OPTS += SQLITE=0 endif +ifeq ($(BR2_PACKAGE_ZLIB),y) +LSHW_DEPENDENCIES += host-pkgconf zlib +LSHW_MAKE_OPTS += ZLIB=1 +else +LSHW_MAKE_OPTS += ZLIB=0 +endif + define LSHW_BUILD_CMDS $(LSHW_MAKE_ENV) $(MAKE) -C $(@D)/src \ $(LSHW_MAKE_OPTS) \