[1/1] package/daq: fix build with host libdnet
diff mbox series

Message ID 20190814175135.14429-1-fontaine.fabrice@gmail.com
State Accepted
Headers show
Series
  • [1/1] package/daq: fix build with host libdnet
Related show

Commit Message

Fabrice Fontaine Aug. 14, 2019, 5:51 p.m. UTC
Fixes:
 - https://bugs.buildroot.org/show_bug.cgi?id=12106

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/daq/daq.mk | 7 +++++++
 1 file changed, 7 insertions(+)

Patch
diff mbox series

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