aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Yann E. MORIN <yann.morin.1998@free.fr>2016-08-18 23:01:22 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2016-08-18 23:25:22 +0200
commit4d17611eab903fc7985b895bb251616cc9b5a6f0 (patch)
tree07a5aa54328085d06e68d60fe4d60ff0ea17766a
parente8c3755676111dbd5c45d556da7982993e33e227 (diff)
downloadbuildroot-4d17611eab903fc7985b895bb251616cc9b5a6f0.tar.gz
buildroot-4d17611eab903fc7985b895bb251616cc9b5a6f0.tar.bz2
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" <yann.morin.1998@free.fr> Cc: Vivien Didelot <vivien.didelot@savoirfairelinux.com> Cc: Arnout Vandecappelle <arnout@mind.be> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/lldpd/lldpd.mk8
1 files changed, 8 insertions, 0 deletions
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