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 89390A00BE; Wed, 29 Apr 2020 12:57:56 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 699B81DA00; Wed, 29 Apr 2020 12:57:56 +0200 (CEST) Received: from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com [64.147.123.21]) by dpdk.org (Postfix) with ESMTP id EB8551D9FF for ; Wed, 29 Apr 2020 12:57:54 +0200 (CEST) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id BF084926; Wed, 29 Apr 2020 06:57:53 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Wed, 29 Apr 2020 06:57: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= JRNBpOrVuJwlcEM3WtFIiqAVA236jB5bQGSSOHvCltQ=; b=ecxs+Iyrudm6Z8xL LIHEW33wrwZo4FL4Lb6CV2nmn5G4LYWzSLv8tsSgM+nRz8YbX1DiAK2qDeuvp75u hL+qF96JP0IEm+o1H4DVLD1nTue35RBI9c01mGWYVG5EF4UxIZlddWLpWIy1XL5h wOh+4xEJYvCFB/6Pv3j9qO1vdPr4Xq6EwGiI1etFlnYtatXpyJnqPnS49mqvb4qf zNOmmWxrb1SJe9s/liZ3XqNYOVbi5X/Rrjm1dGlX+mS+yIRPKv0wvyDYS+HM2tTG 2qzphEXdVTetBFy+H4QwopKVlIOReQfHJfWLB5/kICf5/rqo5HvG8Qo/smKIL5I+ EZ4Mcg== 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=JRNBpOrVuJwlcEM3WtFIiqAVA236jB5bQGSSOHvCl tQ=; b=rU6ZheumnwNrpzBUXAlhgzddZOvXG9ZQpC3DBJ/rXP9YsosrRiZ1HuZoG /oW7Wk81ulAcII3pGuxe7tv6etPxQZzfM4VFdffh81ZrOmo4Xsc5ALOqUPPhvhT/ tZnLDHDHIoTrQG5nhkC+D87q+XJY6TxJ7vxOUyfAh6be3nOBmlx5pN8mZBcvZGgi RMnPJMoj2L45K0JvZ2edSjL407r+FIsXz3EFzNMYIXwzWCPRXt2lIhQTt8p5pzHL Kb8qfW9KOMeS+ooupWMvr/rzkSXNLW20BY+AJyqDZqg6VHBxehAWYAbppQhzBANc sxsi9xftyApBDdOjiyIYw7z+55uEg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrieefgdefgecutefuodetggdotefrodftvf 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 9B55D328005E; Wed, 29 Apr 2020 06:57: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:57:51 +0200 Message-ID: <2153087.ZuhQCC13oI@thomas> In-Reply-To: <20200429105621.GE1907@bricha3-MOBL.ger.corp.intel.com> References: <20200429100831.398-1-bruce.richardson@intel.com> <4340337.5kDrRr5YYq@thomas> <20200429105621.GE1907@bricha3-MOBL.ger.corp.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:56, Bruce Richardson: > 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? :-) I'm happy it helped the general case :-)