Skip to contentSkip to conversation

package/daq: fix build with host libdnet

PATCH New Fabrice Fontaine 2 participants 2 messages Aug 14, 2019 – Sep 2, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/daq: fix build with host libdnet

Fixes:
- https://bugs.buildroot.org/show_bug.cgi?id=12106

---
 package/daq/daq.mk | 7 +++++++
 1 file changed, 7 insertions(+)
package/daq/daq.mk +7 -0
index a23a9dc5ee..f0f996ba2c 100644
@@ -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
Signature · 1 line
2.20.1