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 1C025A00BE; Wed, 29 Apr 2020 12:56:29 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id F00DB1DA1E; Wed, 29 Apr 2020 12:56:28 +0200 (CEST) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 2307D1DA1D for ; Wed, 29 Apr 2020 12:56:26 +0200 (CEST) IronPort-SDR: HK4KVEiD0iJQsuf8LlKI8PWHcop0NUcWYEYJ991LXPF8eGoj0hS9LZVckKagD+cgv8yYX+wUAH pCVA8flnhIIw== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2020 03:56:26 -0700 IronPort-SDR: Lk4rcy4vEegN2ljAoAsDPij5jws4dms5zBHCvm4raB8A8uLv7U6hbF+kTMvtuERTvVSiBBCAIi hgArmvO7XP1g== X-IronPort-AV: E=Sophos;i="5.73,331,1583222400"; d="scan'208";a="432518896" 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:56:24 -0700 Date: Wed, 29 Apr 2020 11:56:21 +0100 From: Bruce Richardson To: Thomas Monjalon Cc: dev@dpdk.org, bluca@debian.org, david.marchand@redhat.com, ktraynor@redhat.com Message-ID: <20200429105621.GE1907@bricha3-MOBL.ger.corp.intel.com> References: <20200429100831.398-1-bruce.richardson@intel.com> <20200429100831.398-7-bruce.richardson@intel.com> <4340337.5kDrRr5YYq@thomas> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4340337.5kDrRr5YYq@thomas> 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 12:32:51PM +0200, Thomas Monjalon wrote: > 29/04/2020 12:08, Bruce Richardson: > > 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. > > It looks to be the same workaround I did for ibverbs static linkage :) > sed -r "/^-l($deps)/! s,(^-l)(.*),\1:lib\2.a," > Are you implying that I normally learn nothing from your patches? :-)