[v5,3/8] m4: odp_dpdk: pass CFLAGS and LDFLAGS to CC when locating libdpdk.so

Message ID 1535410807-29034-4-git-send-email-odpbot@yandex.ru
State New
Headers show
Series
  • Travis: use Ubuntu 16.04 Docker image
Related show

Commit Message

Github ODP bot Aug. 27, 2018, 11 p.m.
From: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>


Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@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: 6ce60cac1fea6d65803740f5f9b6627abf6814b3
 ** Merge commit sha: 8c5d835ef3fbc6ab78503945fef582f7c60ac2c9
 **/
 m4/odp_dpdk.m4 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Patch

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