From patchwork Thu Feb 1 14:20:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bruce Richardson X-Patchwork-Id: 34843 X-Patchwork-Delegate: bruce.richardson@intel.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5EB911B1AC; Thu, 1 Feb 2018 15:20:36 +0100 (CET) Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 4F8221B1A4 for ; Thu, 1 Feb 2018 15:20:35 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Feb 2018 06:20:34 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,444,1511856000"; d="scan'208";a="200553777" Received: from silpixa00399126.ir.intel.com (HELO silpixa00399126.ger.corp.intel.com) ([10.237.223.223]) by fmsmga006.fm.intel.com with ESMTP; 01 Feb 2018 06:20:34 -0800 From: Bruce Richardson To: dev@dpdk.org Cc: Bruce Richardson Date: Thu, 1 Feb 2018 14:20:08 +0000 Message-Id: <20180201142011.133441-3-bruce.richardson@intel.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180201142011.133441-1-bruce.richardson@intel.com> References: <20180131174249.257933-1-bruce.richardson@intel.com> <20180201142011.133441-1-bruce.richardson@intel.com> Subject: [dpdk-dev] [PATCH v2 2/5] build: fix dependency on execinfo for BSD meson builds 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" The binaries and apps in DPDK all need to be linked against the execinfo library on FreeBSD so add this as a dependency in cases where it is found. It's available by default on BSD, but not at all on Linux Fixes: 16ade738fd0d ("app/testpmd: build with meson") Fixes: 89f0711f9ddf ("examples: build some samples with meson") Fixes: b5dc795a8a55 ("test: build app with meson as dpdk-test") Fixes: 2ff67267b049 ("app/eventdev: build with meson") Signed-off-by: Bruce Richardson --- app/test-eventdev/meson.build | 1 + app/test-pmd/meson.build | 1 + examples/meson.build | 3 ++- test/test/meson.build | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/test-eventdev/meson.build b/app/test-eventdev/meson.build index 7fb3a280a..7c373c87b 100644 --- a/app/test-eventdev/meson.build +++ b/app/test-eventdev/meson.build @@ -13,6 +13,7 @@ sources = files('evt_main.c', 'test_perf_queue.c') dep_objs = [get_variable(get_option('default_library') + '_rte_eventdev')] +dep_objs += cc.find_library('execinfo', required: false) # BSD only link_libs = [] if get_option('default_library') == 'static' diff --git a/app/test-pmd/meson.build b/app/test-pmd/meson.build index 9964dae75..7ed74db2b 100644 --- a/app/test-pmd/meson.build +++ b/app/test-pmd/meson.build @@ -37,6 +37,7 @@ dep_objs = [] foreach d:deps dep_objs += get_variable(get_option('default_library') + '_rte_' + d) endforeach +dep_objs += cc.find_library('execinfo', required: false) # for BSD only link_libs = [] if get_option('default_library') == 'static' diff --git a/examples/meson.build b/examples/meson.build index 5658fbe04..2c6b3f889 100644 --- a/examples/meson.build +++ b/examples/meson.build @@ -6,12 +6,13 @@ if get_option('default_library') == 'static' driver_libs = dpdk_drivers endif +execinfo = cc.find_library('execinfo', required: false) foreach example: get_option('examples').split(',') name = example sources = [] allow_experimental_apis = false cflags = machine_args - ext_deps = [] + ext_deps = [execinfo] includes = [include_directories(example)] deps = ['eal', 'mempool', 'net', 'mbuf', 'ethdev', 'cmdline'] subdir(example) diff --git a/test/test/meson.build b/test/test/meson.build index d5b768b9d..2457a2adb 100644 --- a/test/test/meson.build +++ b/test/test/meson.build @@ -234,6 +234,7 @@ foreach d:test_deps def_lib = get_option('default_library') test_dep_objs += get_variable(def_lib + '_rte_' + d) endforeach +test_dep_objs += cc.find_library('execinfo', required: false) link_libs = [] if get_option('default_library') == 'static'