From patchwork Mon Aug 14 09:51:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 27553 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 6B0BD9985; Mon, 14 Aug 2017 12:04:02 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id EAE3E9957 for ; Mon, 14 Aug 2017 12:03:29 +0200 (CEST) Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Aug 2017 03:03:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,372,1498546800"; d="scan'208";a="118723795" Received: from silpixa00399126.ir.intel.com (HELO silpixa00399126.ger.corp.intel.com) ([10.237.223.223]) by orsmga004.jf.intel.com with ESMTP; 14 Aug 2017 03:03:28 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: thomas@monjalon.net, Bruce Richardson Date: Mon, 14 Aug 2017 10:51:46 +0100 Message-Id: <20170814095208.166496-19-bruce.richardson@intel.com> X-Mailer: git-send-email 2.13.4 In-Reply-To: <20170814095208.166496-1-bruce.richardson@intel.com> References: <20170814095208.166496-1-bruce.richardson@intel.com> Subject: [dpdk-dev] [RFCv2 18/40] build: add symbol version map file support to libs 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Signed-off-by: Bruce Richardson --- drivers/net/meson.build | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/net/meson.build b/drivers/net/meson.build index f64ab07f7..2358194e0 100644 --- a/drivers/net/meson.build +++ b/drivers/net/meson.build @@ -74,12 +74,17 @@ foreach drv:net_drivers endforeach # now build the driver itself, and add to the drivers list - lib = library('rte_pmd_@0@'.format(drv), + drv_name = 'rte_pmd_@0@'.format(drv) + version_map = '@0@/@1@/rte_pmd_@1@_version.map'.format( + meson.current_source_dir(), drv) + lib = library(drv_name, sources, include_directories: includes, dependencies: deps, link_with: libs, c_args: cflags, + link_args: '-Wl,--version-script=' + version_map, + link_depends: version_map, install: true, install_dir: driver_install_path)