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 127F5A0350; Wed, 1 Jul 2020 09:56:20 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7C9701C1CB; Wed, 1 Jul 2020 09:56:19 +0200 (CEST) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 6AAFE1C191 for ; Wed, 1 Jul 2020 09:56:17 +0200 (CEST) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id AF7F45C0003; Wed, 1 Jul 2020 03:56:16 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Wed, 01 Jul 2020 03:56:16 -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= OQ3GO6u+zx7HQNIz0vAemOyHcsFroR2ly8QeINk+aIQ=; b=buvvJXgAT6wr4RMO YnLN/fMjvVRe9vqe6mux+TVsUyHuFx7WvScz5dayB1I27JeatkBi3F280iFW8wh8 0EwaUlb96DLeP39YBHzx8M16kGO7CbOwY1MSHyTgCSNbLet9LryOwbr0xMkoAkG5 bdMT2bkJqBV7D0DQlP7WhpUhD32HHI7i/ms/KqG/cf3IjtT/MpfUtDEsq+ladEsa 3KWSLCgwVyXdOgQQm9KX6lTse2wqxI29laF2L+T95cl3ub9/EluphG6omW74egAo zGcecwPGXKqAXS/NiUSlxpwPcghTs1SL1HgMcysu5pCTLXM7C6OeLBQzFgk8HGC2 xnaX+Q== 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=fm3; bh=OQ3GO6u+zx7HQNIz0vAemOyHcsFroR2ly8QeINk+a IQ=; b=hDKF9UO0jrCb/c7zpXJQm/rqxeBVtFOFgJtRLMbKs0JWTlf9bNeKqtYO6 ylcr8uBtDColLspXB1IM2eGl+oebVHtnT+kUR28o4xA7yF7A7cGJ1ZBhhyhEEzKc vSEs7CFR1mvwQtCJ7Zql38JnH7vNx3HPyLR84ja0w26ec3l1QPti3qM2VGLz53ZX I6jqIUkDAfP9ppVonou0M5qIPW4IFABRlo47MC7Ylqg4tGTVojpEHnucSevBVva5 PmfuiRJggAci7c3tTcR6vGxOC29RDeF42J4Gr2Dv7XMAWyTADd21Swm4Q91Vi4Zs V1VheDAhwqpySLCs+ieNT2u2efRlg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrtddugdduvdejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvufffkfgjfhgggfgtsehtufertddttddvnecuhfhrohhmpefvhhhomhgr shcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqnecugg ftrfgrthhtvghrnhepudeggfdvfeduffdtfeeglefghfeukefgfffhueejtdetuedtjeeu ieeivdffgeehnecukfhppeejjedrudefgedrvddtfedrudekgeenucevlhhushhtvghruf hiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehthhhomhgrshesmhhonhhjrghl ohhnrdhnvght 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 7A97D328005E; Wed, 1 Jul 2020 03:56:15 -0400 (EDT) From: Thomas Monjalon To: Bruce Richardson Cc: dev@dpdk.org, david.marchand@redhat.com, ktraynor@redhat.com, bluca@debian.org, sunil.pai.g@intel.com Date: Wed, 01 Jul 2020 09:56:13 +0200 Message-ID: <4910125.YRS67Szt0T@thomas> In-Reply-To: <20200630141433.818517-8-bruce.richardson@intel.com> References: <20200429100831.398-1-bruce.richardson@intel.com> <20200630141433.818517-1-bruce.richardson@intel.com> <20200630141433.818517-8-bruce.richardson@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v3 7/7] build/pkg-config: prevent overlinking 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" 30/06/2020 16:14, Bruce Richardson: > Add the --as-needed linker flag to the DPDK library list in the pkg-config > file so as to prevent overlinking. Without this flag, when linking > statically using flags from $(pkg-config --static --libs libdpdk), all DPDK > drivers and libs were statically linked in, but the binary was also > requiring all the shared versions be present to run. > > The real root-cause of this issue is that the DPDK libraries need to be > duplicated in the linker command when doing static linking, due to the > behaviour of pkg-config, but since that behaviour cannot be easily changed, > this is a simple workaround to avoid problems. It deserves to give a more detailed explanation here.