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 1EE9CA00BE; Wed, 29 Apr 2020 13:03:14 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id EE84E1D56C; Wed, 29 Apr 2020 13:03:12 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id DDD491D15E for ; Wed, 29 Apr 2020 13:03:10 +0200 (CEST) IronPort-SDR: JlB+1BZR8BA5oSFHIDIlPWxAW2/GIr+8/1jUX7R2i/mefQkK7V1ClJJfkZpne4SfuUb3cfLzVN YwTgBS5AB0Wg== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2020 04:03:10 -0700 IronPort-SDR: +dURf33TQmReULWH3Eqid/FfqQgnTgwitPyjx9gbrlmN9rtFT/bYeM7VykY/k1cYpikat7BAof VS9+9w2CE/Wg== X-IronPort-AV: E=Sophos;i="5.73,331,1583222400"; d="scan'208";a="432520847" Received: from bricha3-mobl.ger.corp.intel.com ([10.249.47.131]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-SHA; 29 Apr 2020 04:03:08 -0700 Date: Wed, 29 Apr 2020 12:03:04 +0100 From: Bruce Richardson To: Luca Boccassi Cc: dev@dpdk.org, thomas@monjalon.net, david.marchand@redhat.com, ktraynor@redhat.com Message-ID: <20200429110304.GH1907@bricha3-MOBL.ger.corp.intel.com> References: <20200429100831.398-1-bruce.richardson@intel.com> <20200429100831.398-6-bruce.richardson@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [dpdk-dev] [PATCH 5/7] build/pkg-config: output driver libs first for static build 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" On Wed, Apr 29, 2020 at 11:40:33AM +0100, Luca Boccassi wrote: > On Wed, 2020-04-29 at 11:08 +0100, Bruce Richardson wrote: > > When calling pkg-config --static --libs, pkg-config will always output the > > regular libs first, and then the extra libs from libraries.private field, > > since the assumption is that those are additional dependencies for building > > statically that the .a files depend upon. > > > > However, for DPDK, we only link the driver files for static builds, and > > those need to come *before* the regular libraries. To get this result, we > > need two pkgconfig files for DPDK, one for the shared libs, and a second > > for the static libs and drivers, which depends upon the first. Using a > > dependency means that the shared libs are printed only after the > > libraries.private field rather than before. > > A neat trick! Can we document that the new file is an implementation > detail for internal usage, and that it should not be referenced > directly? > I'm even pondering if it would be possible to install it in a private > directory, need to check if there's a way for Requires to specify > prefixes > That would be great, if there was a way to hide it. I also take it from your feedback that a package needing multiple .pc files is not an issue for debian packaging?