libintel_dpdk.a refuses to link with libopenvswitch unless -ldl is used
this could probably be fixed also by using -Wl,-whole-archive

Signed-off-by: Daniele Di Proietto <ddiproie...@vmware.com>
---
This could probably be fixed also by using -Wl,-whole-archive
---
 acinclude.m4 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/acinclude.m4 b/acinclude.m4
index e8a8a2e..97eecdb 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -163,7 +163,7 @@ dnl Configure DPDK source tree
 AC_DEFUN([OVS_CHECK_DPDK], [
   AC_ARG_WITH([dpdk],
               [AC_HELP_STRING([--with-dpdk=/path/to/dpdk],
-                              [Specify the DPDP build directory])])
+                              [Specify the DPDK build directory])])
 
   if test X"$with_dpdk" != X; then
     RTE_SDK=$with_dpdk
@@ -172,8 +172,8 @@ AC_DEFUN([OVS_CHECK_DPDK], [
     DPDK_LIB_DIR=$RTE_SDK/lib
     DPDK_LIBS="$DPDK_LIB_DIR/libintel_dpdk.a"
 
-    LIBS="$DPDK_LIBS $LIBS"
-    CPPFLAGS="-I$DPDK_INCLUDE $CPPFLAGS"
+    LIBS="-ldl $DPDK_LIBS $LIBS"
+    CFLAGS="$CFLAGS -I$DPDK_INCLUDE"
 
     AC_DEFINE([DPDK_NETDEV], [1], [System uses the DPDK module.])
   else
-- 
2.0.0.rc0

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to