From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id B2B80A2F for ; Fri, 21 Apr 2017 15:50:41 +0200 (CEST) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga104.jf.intel.com with ESMTP; 21 Apr 2017 06:50:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.37,230,1488873600"; d="scan'208";a="90635780" Received: from sivswdev01.ir.intel.com ([10.237.217.45]) by orsmga005.jf.intel.com with ESMTP; 21 Apr 2017 06:50:39 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson Date: Fri, 21 Apr 2017 14:50:21 +0100 Message-Id: <20170421135024.25323-2-bruce.richardson@intel.com> X-Mailer: git-send-email 2.8.4 In-Reply-To: <20170421135024.25323-1-bruce.richardson@intel.com> References: <20170420163250.1373-1-bruce.richardson@intel.com> <20170421135024.25323-1-bruce.richardson@intel.com> Subject: [dpdk-dev] [PATCH v2 1/4] 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: Fri, 21 Apr 2017 13:50:42 -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 Acked-by: John Miller --- 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