From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yuanhan Liu Subject: [PATCH 2/2] net: fix build error Date: Thu, 18 Jan 2018 11:14:43 +0800 Message-ID: <1516245283-23990-2-git-send-email-yliu@fridaylinux.org> References: <20180118030921.GW29540@yliu-mob> <1516245283-23990-1-git-send-email-yliu@fridaylinux.org> Cc: Thomas Monjalon , Xiao Wang , Ferruh Yigit , Olivier Matz , Yuanhan Liu To: dev@dpdk.org Return-path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id B90FE1B026 for ; Thu, 18 Jan 2018 04:16:53 +0100 (CET) In-Reply-To: <1516245283-23990-1-git-send-email-yliu@fridaylinux.org> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Fix build error when shared lib is enabled: LD librte_net.so.1.1 rte_arp.o: In function `rte_net_make_rarp_packet': rte_arp.c:(.text+0x1f0): undefined reference to `rte_mempool_ops_table' rte_arp.c:(.text+0x21d): undefined reference to `rte_mempool_ops_table' rte_arp.c:(.text+0x2d5): undefined reference to `rte_mempool_ops_table' rte_arp.c:(.text+0x384): undefined reference to `rte_mempool_ops_table' rte_arp.c:(.text+0x4b7): undefined reference to `rte_mempool_ops_table' Fixes: 45ae05df824c ("net: add a helper for making RARP packet") Signed-off-by: Yuanhan Liu --- lib/librte_net/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_net/Makefile b/lib/librte_net/Makefile index ab290c3..95ff549 100644 --- a/lib/librte_net/Makefile +++ b/lib/librte_net/Makefile @@ -6,7 +6,7 @@ include $(RTE_SDK)/mk/rte.vars.mk LIB = librte_net.a CFLAGS += $(WERROR_FLAGS) -I$(SRCDIR) -O3 -LDLIBS += -lrte_mbuf -lrte_eal +LDLIBS += -lrte_mbuf -lrte_eal -lrte_mempool EXPORT_MAP := rte_net_version.map LIBABIVER := 1 -- 2.7.4