diff mbox series

[v1,4/5] m4: odp_dpdk: pass CFLAGS and LDFLAGS to CC when locating libdpdk.so

Message ID 1535270406-26015-5-git-send-email-odpbot@yandex.ru
State Superseded
Headers show
Series [v1,1/5] travis: drop LD variable override | expand

Commit Message

Github ODP bot Aug. 26, 2018, 8 a.m. UTC
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: 989df5d2f97ab4711328b11282dcc743f5740e00
 ** Merge commit sha: d8e7eaf6fa1b281c4ef9759cf7b64bfdd3b64c0b
 **/
 m4/odp_dpdk.m4 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

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