[ovs-dev] [PATCH v2 1/2] acinclude.m4: fix build with dpdk 1.6.0r2
Daniele Di Proietto
ddiproietto at vmware.com
Fri May 9 23:56:57 UTC 2014
libintel_dpdk.a refuses to link with libopenvswitch unless -ldl is used
Signed-off-by: Daniele Di Proietto <ddiproietto at vmware.com>
---
This could probably be fixed also by using -Wl,-whole-archive
Besides, it looks like a workaround, so if anyone has a better
solution, that'd be great
---
acinclude.m4 | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/acinclude.m4 b/acinclude.m4
index e8a8a2e..b6f8f11 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="$DPDK_LIBS -ldl $LIBS"
+ CFLAGS="$CFLAGS -I$DPDK_INCLUDE"
AC_DEFINE([DPDK_NETDEV], [1], [System uses the DPDK module.])
else
--
2.0.0.rc0
More information about the dev
mailing list