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 DC839A00BE; Wed, 29 Apr 2020 12:32:58 +0200 (CEST) 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,"