From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CEB4EC83007 for ; Wed, 29 Apr 2020 10:56:29 +0000 (UTC) Received: from dpdk.org (dpdk.org [92.243.14.124]) by mail.kernel.org (Postfix) with ESMTP id 96C4D2072A for ; Wed, 29 Apr 2020 10:56:29 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 96C4D2072A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dev-bounces@dpdk.org 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? :-)