From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id ED8EFA00BE; Wed, 29 Apr 2020 12:58:19 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C1C441DA2A; Wed, 29 Apr 2020 12:58:19 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 68C471DA29 for ; Wed, 29 Apr 2020 12:58:17 +0200 (CEST) IronPort-SDR: fgTrXVMSeqgBnTo99ie7A71Cr1u2c3oTm+hwxQEglVRBgGYwJY28Bf1pcfg2/iRJQlcbEdZlCj kwr8H6C5x5Rg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2020 03:58:16 -0700 IronPort-SDR: 6k8ood7Zjh60FuyzWGc5q6hYdnHR5nj8cmor5wr/p6tDOdJwW5eFNZAe4AerKPV3SjlOpCcANK +YRLsI6FeavA== X-IronPort-AV: E=Sophos;i="5.73,331,1583222400"; d="scan'208";a="432519199" Received: from bricha3-mobl.ger.corp.intel.com ([10.249.47.131]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-SHA; 29 Apr 2020 03:58:14 -0700 Date: Wed, 29 Apr 2020 11:58:10 +0100 From: Bruce Richardson To: Luca Boccassi Cc: dev@dpdk.org, thomas@monjalon.net, david.marchand@redhat.com, ktraynor@redhat.com Message-ID: <20200429105810.GF1907@bricha3-MOBL.ger.corp.intel.com> References: <20200429100831.398-1-bruce.richardson@intel.com> <20200429100831.398-7-bruce.richardson@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [dpdk-dev] [PATCH 6/7] build/pkg-config: improve static linking flags 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" On Wed, Apr 29, 2020 at 11:37:02AM +0100, Luca Boccassi wrote: > On Wed, 2020-04-29 at 11:08 +0100, Bruce Richardson wrote: > > Rather than setting -Bstatic in the linker flags when doing a static link, > > and then having to explicitly set -Bdynamic again afterwards, we can update > > the pkg-config file to use -l:libfoo.a syntax to explicitly refer to the > > static library in question. Since this syntax is not supported by meson's > > pkg-config module directly, we can post-process the .pc files instead to > > adjust them. > > > > Once done, we can simplify the examples' makefiles and the docs by removing > > the explicit static flag > > This sounds like a worthwhile feature request for Meson to me. Would > you be up for opening an RFE on their issue tracker explaining the use > case, please? > Yes, I can do so. I didn't look to implement this in meson myself because it would take so long to get into a version that we would use as our minimum version. :-( /Bruce