From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Apr 2017 09:33:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,225,1488873600"; d="scan'208";a="848078579" Received: from sivswdev01.ir.intel.com ([10.237.217.45]) by FMSMGA003.fm.intel.com with ESMTP; 20 Apr 2017 09:33:07 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson Date: Thu, 20 Apr 2017 17:32:50 +0100 Message-Id: <20170420163250.1373-3-bruce.richardson@intel.com> X-Mailer: git-send-email 2.8.4 In-Reply-To: <20170420163250.1373-1-bruce.richardson@intel.com> References: <20170420163250.1373-1-bruce.richardson@intel.com> Subject: [dpdk-dev] [PATCH 2/2] net/ark: fix FreeBSD compilation X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Apr 2017 16:33:09 -0000 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