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.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, 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 4A284C83003 for ; Wed, 29 Apr 2020 10:32:59 +0000 (UTC) Received: from dpdk.org (dpdk.org [92.243.14.124]) by mail.kernel.org (Postfix) with ESMTP id CC77521D91 for ; Wed, 29 Apr 2020 10:32:58 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=monjalon.net header.i=@monjalon.net header.b="pcrfDBjm"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="v2UMGBBo" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CC77521D91 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=monjalon.net 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 A5EE11D9C1; Wed, 29 Apr 2020 12:32:57 +0200 (CEST) Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) by dpdk.org (Postfix) with ESMTP id 5CD1D1D98E for ; Wed, 29 Apr 2020 12:32:55 +0200 (CEST) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 1F8DA918; Wed, 29 Apr 2020 06:32:54 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Wed, 29 Apr 2020 06:32:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s=fm1; bh= OdfEf6H7sQ25XzJd1ECLoY6GkEYOehL60rD68UsoE8s=; b=pcrfDBjmXd9md7fz f+EYn0IgEyV1QMXPiDpQNYV4UQKzuzo8OtSopeIeGwEYrjY5cpOt+v7ish+1d1Zi ansVFey/7kcue9jPfYIxULaQ4O9DejVrvH7px2cv1kUObt1INKDdfQ0zFq/iBboW vykEqlnnWmH344h1pGi9HF8SLb8b4rewbcLxGBXj9TLZpkdGQr1WrvPCtK8BWsyZ 6jI/K4G6ycoFeyC/VDjILJKQjtvKdTg/8aWPXWSNMOt06z/l4t++cBb8IPLafXzs xZz00a+Ye4nxwVOykavtPcI0D59R1mSH9ys+Cf1DEysEDvqek/DCMQYwRkKJ/z8g do73Cw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=OdfEf6H7sQ25XzJd1ECLoY6GkEYOehL60rD68UsoE 8s=; b=v2UMGBBoGdx1NGxVyNK0dVqghiwkzbj98XojGM0NnHaupqQvjJ/ZKtfH2 C10TzP5E7octlKzF+31VTAPVFUrKU85H3U0cNj2MiZJhhZhDdkW+qppO7aVKAzQe XMnzvDbAiBNiTBN7NcsNJM0B6DoatThLMeFp70xfV1jEy+S+Qn/h6kqYehckC6om wLkVTzMoGmDms24LWYZFP39G67e10rZ+QvVhdGSDzdozyZVFoY6dpxlax0iVjPI9 dqpyBQZz2ONQY/SUS1wazMsc1bribNHhneyFyMmh3/nqMS+zH9As4JxVdvehZk+N /IIAFGuJF5egL6ai1Dg3xF2tHUm5w== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrieefgddvlecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhmrghs ucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucfkph epjeejrddufeegrddvtdefrddukeegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghr rghmpehmrghilhhfrhhomhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth X-ME-Proxy: Received: from xps.localnet (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id BF83C3280065; Wed, 29 Apr 2020 06:32:52 -0400 (EDT) From: Thomas Monjalon To: Bruce Richardson Cc: dev@dpdk.org, bluca@debian.org, david.marchand@redhat.com, ktraynor@redhat.com Date: Wed, 29 Apr 2020 12:32:51 +0200 Message-ID: <4340337.5kDrRr5YYq@thomas> In-Reply-To: <20200429100831.398-7-bruce.richardson@intel.com> References: <20200429100831.398-1-bruce.richardson@intel.com> <20200429100831.398-7-bruce.richardson@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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" 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,"