From: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org>

Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsoleni...@linaro.org>
---
/** Email created from pull request 681 (lumag:travis-xenial)
 ** https://github.com/Linaro/odp/pull/681
 ** Patch: https://github.com/Linaro/odp/pull/681.patch
 ** Base sha: 989df5d2f97ab4711328b11282dcc743f5740e00
 ** Merge commit sha: e9bb9d25361eb56f5cb785ca4ff4800a9d64c449
 **/
 m4/odp_dpdk.m4 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/m4/odp_dpdk.m4 b/m4/odp_dpdk.m4
index 2ef5253c8..1072bf2dc 100644
--- a/m4/odp_dpdk.m4
+++ b/m4/odp_dpdk.m4
@@ -121,9 +121,9 @@ AC_DEFUN([ODP_DPDK], [dnl
 AS_IF([test "x$1" = "xsystem"], [dnl
     DPDK_CPPFLAGS="-isystem /usr/include/dpdk"
     DPDK_LDFLAGS=""
-    DPDK_LIB_PATH="`$CC --print-file-name=libdpdk.so`"
+    DPDK_LIB_PATH="`$CC $CFLAGS $LDFLAGS --print-file-name=libdpdk.so`"
     if test "$DPDK_LIB_PATH" = "libdpdk.so" ; then
-       DPDK_LIB_PATH="`$CC --print-file-name=libdpdk.a`"
+       DPDK_LIB_PATH="`$CC $CFLAGS $LDFLAGS --print-file-name=libdpdk.a`"
         AS_IF([test "$DPDK_LIB_PATH" = "libdpdk.a"],
            [AC_MSG_FAILURE([Could not locate system DPDK library directory])])
     else

Reply via email to