aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Fabrice Fontaine <fontaine.fabrice@gmail.com>2019-08-14 19:51:35 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@bootlin.com>2019-08-15 15:15:22 +0200
commitbd8a37a681cb5190f5af0ed1c20f556bf5661345 (patch)
treea9c557d0dead2ebdd6ce2f81585476dc16bb6681
parent81b164c537e8078f3c3a3eb374496dcc1e930dea (diff)
downloadbuildroot-bd8a37a681cb5190f5af0ed1c20f556bf5661345.tar.gz
buildroot-bd8a37a681cb5190f5af0ed1c20f556bf5661345.tar.bz2
package/daq: fix build with host libdnet
Fixes: - https://bugs.buildroot.org/show_bug.cgi?id=12106 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
-rw-r--r--package/daq/daq.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/package/daq/daq.mk b/package/daq/daq.mk
index a23a9dc5ee..f0f996ba2c 100644
--- a/package/daq/daq.mk
+++ b/package/daq/daq.mk
@@ -18,6 +18,13 @@ DAQ_MAKE = $(MAKE1)
# disable ipq module as libipq is deprecated
DAQ_CONF_OPTS += --disable-ipq-module
+# Set --with-dnet-{includes,libraries} even if ipq and nfq modules are disabled
+# otherwise daq will call 'dnet-config --cflags' and 'dnet-config --libs' which
+# will result in a build failure if libdnet is installed on host
+DAQ_CONF_OPTS += \
+ --with-dnet-includes=$(STAGING_DIR)/usr/include \
+ --with-dnet-libraries=$(STAGING_DIR)/usr/lib
+
ifeq ($(BR2_PACKAGE_LIBDNET)$(BR2_PACKAGE_LIBNETFILTER_QUEUE),yy)
DAQ_DEPENDENCIES += libdnet libnetfilter_queue
DAQ_CONF_OPTS += --enable-nfq-module