From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bruce Richardson Subject: [PATCH 2/2] net/ark: fix FreeBSD compilation Date: Thu, 20 Apr 2017 17:32:50 +0100 Message-ID: <20170420163250.1373-3-bruce.richardson@intel.com> References: <20170420163250.1373-1-bruce.richardson@intel.com> Cc: Bruce Richardson To: dev@dpdk.org Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id 9BB8237B0 for ; Thu, 20 Apr 2017 18:33:08 +0200 (CEST) In-Reply-To: <20170420163250.1373-1-bruce.richardson@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On FreeBSD it's not necessary to use -ldl to link apps which use dlopen. This error only showed up with a shared library gcc build, not standard build using static libs. Fixes: 1131cbf0fb2b ("net/ark: stub PMD for Atomic Rules Arkville") Signed-off-by: Bruce Richardson --- drivers/net/ark/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/net/ark/Makefile b/drivers/net/ark/Makefile index b3d462ff5..ca64b1957 100644 --- a/drivers/net/ark/Makefile +++ b/drivers/net/ark/Makefile @@ -59,6 +59,8 @@ SRCS-$(CONFIG_RTE_LIBRTE_ARK_PMD) += ark_udm.c # this lib depends upon: LDLIBS += -lpthread +ifdef CONFIG_RTE_EXEC_ENV_LINUXAPP LDLIBS += -ldl +endif include $(RTE_SDK)/mk/rte.lib.mk -- 2.11.0