summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerin Jacob <jerinj@marvell.com>2018-12-27 06:06:48 +0000
committerFerruh Yigit <ferruh.yigit@intel.com>2019-01-03 13:41:07 +0100
commit9d1d6a7c7747173b4cb5a882316a0e3b5e1585dc (patch)
tree6713a0538d1eafd36776a8ea540326cc3f40fe51
parentf0354d842344b976182e540044a2d5131ec94b6b (diff)
downloaddpdk-9d1d6a7c7747173b4cb5a882316a0e3b5e1585dc.zip
dpdk-9d1d6a7c7747173b4cb5a882316a0e3b5e1585dc.tar.gz
dpdk-9d1d6a7c7747173b4cb5a882316a0e3b5e1585dc.tar.xz
net/ice: fix build with debug enabled
When RTE_LIBRTE_MBUF_DEBUG enabled, rte_mbuf_sanity_check() function defined in rte_mbuf.so library, add it while linking the librte_pmd_ice.so library to fix the build issue. error log: /usr/bin/ld: ice_rxtx.o: in function `ice_recv_pkts': ice_rxtx.c:(.text+0x1d97): undefined reference to `rte_mbuf_sanity_check' /usr/bin/ld: ice_rxtx.o: in function `ice_tx_queue_release_mbufs': ice_rxtx.c:(.text+0x21e0): undefined reference to `rte_mbuf_sanity_check' /usr/bin/ld: ice_rxtx.c:(.text+0x22b3): undefined reference to `rte_mbuf_sanity_check' /usr/bin/ld: ice_rxtx.c:(.text+0x24a0): undefined reference to `rte_mbuf_sanity_check' /usr/bin/ld: ice_rxtx.c:(.text+0x2640): undefined reference to `rte_mbuf_sanity_check' /usr/bin/ld: ice_rxtx.o:ice_rxtx.c:(.text+0x299f): more undefined references to `rte_mbuf_sanity_check' follow Fixes: 50370662b727 ("net/ice: support device and queue ops") Signed-off-by: Jerin Jacob <jerinj@marvell.com> Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
-rw-r--r--drivers/net/ice/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ice/Makefile b/drivers/net/ice/Makefile
index bc24444..4b421cd 100644
--- a/drivers/net/ice/Makefile
+++ b/drivers/net/ice/Makefile
@@ -11,7 +11,8 @@ LIB = librte_pmd_ice.a
CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)
-LDLIBS += -lrte_eal -lrte_ethdev -lrte_kvargs -lrte_bus_pci -lrte_mempool
+LDLIBS += -lrte_eal -lrte_mbuf -lrte_ethdev -lrte_kvargs
+LDLIBS += -lrte_bus_pci -lrte_mempool
EXPORT_MAP := rte_pmd_ice_version.map