diff mbox series

[v1,1/1] m4: fix dpdk linking with mellanox drivers

Message ID 1535101206-23204-2-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [v1,1/1] m4: fix dpdk linking with mellanox drivers | expand

Commit Message

Github ODP bot Aug. 24, 2018, 9 a.m. UTC
From: Maxim Uvarov <maxim.uvarov@linaro.org>


Provide proper names to PMDs to fix issue:
/usr/bin/ld: cannot find -lmlx4
/usr/bin/ld: cannot find -libverbs
/usr/bin/ld: cannot find -lmlx5
/usr/bin/ld: cannot find -libverbs
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>

---
/** Email created from pull request 682 (muvarov:devel/master_docker_pull)
 ** https://github.com/Linaro/odp/pull/682
 ** Patch: https://github.com/Linaro/odp/pull/682.patch
 ** Base sha: 989df5d2f97ab4711328b11282dcc743f5740e00
 ** Merge commit sha: 1c86e96f58151911a4cc5b3ad774a72d324b58bc
 **/
 m4/odp_dpdk.m4 | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
diff mbox series

Patch

diff --git a/m4/odp_dpdk.m4 b/m4/odp_dpdk.m4
index 2ef5253c8..54c73b2b6 100644
--- a/m4/odp_dpdk.m4
+++ b/m4/odp_dpdk.m4
@@ -9,9 +9,9 @@  cur_driver=`basename "$filename" .a | sed -e 's/^lib//'`
 AS_VAR_APPEND([DPDK_PMDS], [-l$cur_driver,])
 AS_CASE([$cur_driver],
     [rte_pmd_nfp], [AS_VAR_APPEND([DPDK_LIBS], [" -lm"])],
-    [rte_pmd_mlx4], [AS_VAR_APPEND([DPDK_LIBS], [" -lmlx4 -libverbs"])],
-    [rte_pmd_mlx5], [AS_VAR_APPEND([DPDK_LIBS], [" -lmlx5 -libverbs"])],
-    [rte_pmd_pcap], [AS_VAR_APPEND([DPDK_LIBS], [" -lpcap"])],
+    [rte_pmd_mlx4], [AS_VAR_APPEND([DPDK_LIBS], [" -l$cur_driver"])],
+    [rte_pmd_mlx5], [AS_VAR_APPEND([DPDK_LIBS], [" -l$cur_driver"])],
+    [rte_pmd_pcap], [AS_VAR_APPEND([DPDK_LIBS], [" -l$cur_driver -lpcap"])],
     [rte_pmd_aesni_gcm], [AS_VAR_APPEND([DPDK_LIBS], [" -lIPSec_MB"])],
     [rte_pmd_aesni_mb], [AS_VAR_APPEND([DPDK_LIBS], [" -lIPSec_MB"])],
     [rte_pmd_kasumi], [AS_VAR_APPEND([DPDK_LIBS], [" -lsso_kasumi"])],