From: Yann E. MORIN Date: Thu, 18 Aug 2016 21:01:22 +0000 (+0200) Subject: package/lldpd: explicit optional dependencies X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4d17611eab903fc7985b895bb251616cc9b5a6f0;p=buildroot.git package/lldpd: explicit optional dependencies check and valgrind are optional depenencies of lldpd, so we must depend on them when either is enabled. Signed-off-by: "Yann E. MORIN" Cc: Vivien Didelot Cc: Arnout Vandecappelle Signed-off-by: Thomas Petazzoni --- diff --git a/package/lldpd/lldpd.mk b/package/lldpd/lldpd.mk index 924f2db989..cc3c3a0193 100644 --- a/package/lldpd/lldpd.mk +++ b/package/lldpd/lldpd.mk @@ -12,6 +12,14 @@ LLDPD_LICENSE_FILES = README.md # 0001-build-make-generation-of-atom-glue-compatible-with-o.patch LLDPD_AUTORECONF = YES +ifeq ($(BR2_PACKAGE_CHECK),y) +LLDPD_DEPENDENCIES += check +endif + +ifeq ($(BR2_PACKAGE_VALGRIND),y) +LLDPD_DEPENDENCIES += valgrind +endif + # Detection of c99 support in configure fails without WCHAR. To enable # automatic detection of c99 support by configure, we need to enable # WCHAR in toolchain. But actually we do not need WCHAR at lldpd