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 F38E8A00BE; Wed, 29 Apr 2020 12:35:01 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 679D91D9C5; Wed, 29 Apr 2020 12:35:01 +0200 (CEST) Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) by dpdk.org (Postfix) with ESMTP id BC17A1D9C1 for ; Wed, 29 Apr 2020 12:34:59 +0200 (CEST) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 9B8B8946; Wed, 29 Apr 2020 06:34:58 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Wed, 29 Apr 2020 06:34:59 -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= YixB9n1vQ6+uLwOJU4yyb2RqYL4h+vh8SPqp47xa63w=; b=K5p/mlyP5Zg/jtoN CGsILoRng7+Fsptnb4ueRr5MkxVu2shgIYprXIm51zN5gjyOMPPV6+3iGLtP1+03 CYCXCZWFGPQK0dYMhWsykSQKKQnZdKDuebCJZR0H0u2rTLFZ6fuAKgi3NIjQBMGZ hQKcBHodlNlq36CUUo0uG0tTSUnwkicKapJUKBfkB8jRTBDveR1sDFRIb/3SS8b5 q2GahSByPElPz2+BDsj9pcmcKUOiopuuRuLXIAyrz3cAA2/r3V+Uye3DLz4bH7WD r8zJ49NqMWdgwQWqn5ptCLibO+M+6I+pQcQBihsxKy1wwybkKjwRUBQRYQq/4dVM 70hFxg== 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=YixB9n1vQ6+uLwOJU4yyb2RqYL4h+vh8SPqp47xa6 3w=; b=RY1GoKy8FzrDX1OAt1DLIpD7XbMof67AkoNWd6koLfG3uWHVbwYNAeLnu yFJGiTVfDrZcCFEfnMz+Kv5mjFDUigHU1a7iggXaPcKGEb3Sw0bSF27dHSRHt3J6 xK97NbSdK/um6B2SBFRLU/AwmSZ6juzMJN2wnAfqPSm8XoRT2CVZ2gibNsbmJXRp wzXHhtAyZHmP5H6NUKGqaHivaDTvzTGeoRANH/MRk1f8BWGuS7G9ZQR6Uq4900WE /2sMWvAPG9NtzC3arGwehBu5WVBcDz1ZQXQSQnPxYE+dw5j7LX1xp5ELQxiw72Zt UlCjlE5fkCwJfT34mV6dm6DY8S8+g== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrieefgddvlecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkjghfggfgtgesthfuredttddtvdenucfhrhhomhepvfhhohhmrghs ucfoohhnjhgrlhhonhcuoehthhhomhgrshesmhhonhhjrghlohhnrdhnvghtqeenucfkph epjeejrddufeegrddvtdefrddukeegnecuvehluhhsthgvrhfuihiivgepudenucfrrghr 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 7D3213065EEC; Wed, 29 Apr 2020 06:34:57 -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:34:56 +0200 Message-ID: <1683481.kWiBISl1fq@thomas> In-Reply-To: <20200429100831.398-8-bruce.richardson@intel.com> References: <20200429100831.398-1-bruce.richardson@intel.com> <20200429100831.398-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 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" 29/04/2020 12:08, 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. I consider "--as-needed" as a workaround here. The root issue is that pkg-config does not distinguish clearly shared and static linkage, right?