diff mbox

[oe,PATCHv3] daq fix compilation

Message ID 1402060667-6786-1-git-send-email-maxim.uvarov@linaro.org
State New
Headers show

Commit Message

Maxim Uvarov June 6, 2014, 1:17 p.m. UTC
preset paths to remove that error:
/meta-oe/recipes-connectivity/daq/daq_2.0.2.bb
./config.log:cc1: warning: include location "/usr/local/include" is unsafe for cross-compilation [-Wpoison-system-directories]

Also this patch add required libdnet dependency.

Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
---
 v2: use ${includedir} ${STAGING_INCDIR} and ${STAGING_LIBDIR} instead of direct
	reference to /usr/include or /usr/lib

 v3: collaps the 2 EXTRA_OECONF += into as single EXTRA_OECONF = (without
the '+').


 meta-oe/recipes-connectivity/daq/daq_2.0.2.bb | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/meta-oe/recipes-connectivity/daq/daq_2.0.2.bb b/meta-oe/recipes-connectivity/daq/daq_2.0.2.bb
index 4e85194..4cf3f1c 100644
--- a/meta-oe/recipes-connectivity/daq/daq_2.0.2.bb
+++ b/meta-oe/recipes-connectivity/daq/daq_2.0.2.bb
@@ -5,7 +5,7 @@  LIC_FILES_CHKSUM = "file://COPYING;md5=f9ce51a65dd738dc1ae631d8b21c40e0"
 
 PARALLEL_MAKE = ""
 
-DEPENDS = "libpcap libpcre"
+DEPENDS = "libpcap libpcre libdnet"
 
 SRC_URI = "http://fossies.org/linux/misc/daq-${PV}.tar.gz \
             file://disable-run-test-program-while-cross-compiling.patch "
@@ -13,7 +13,11 @@  SRC_URI = "http://fossies.org/linux/misc/daq-${PV}.tar.gz \
 # these 2 create undeclared dependency on libdnet and libnetfilter-queue from meta-networking
 # this error from test-dependencies script:
 # daq/daq/latest lost dependency on  libdnet libmnl libnetfilter-queue libnfnetlink
-EXTRA_OECONF += "--disable-nfq-module --disable-ipq-module"
+#
+# never look to /usr/local lib while cross compiling
+
+EXTRA_OECONF = "--disable-nfq-module --disable-ipq-module --includedir=${includedir} \
+	--with-libpcap-includes=${STAGING_INCDIR} --with-dnet-includes=${STAGING_LIBDIR}"
 
 SRC_URI[md5sum] = "865bf9b750a2a2ca632591a3c70b0ea0"
 SRC_URI[sha256sum] = "d65d1e67c4994e02c3142c49a648642e780b7e3d942b4a51f605309beac269a8"