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 208FCA00BE; Wed, 29 Apr 2020 12:30:16 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E0FDC1D9C5; Wed, 29 Apr 2020 12:30:15 +0200 (CEST) Received: from wout1-smtp.messagingengine.com (wout1-smtp.messagingengine.com [64.147.123.24]) by dpdk.org (Postfix) with ESMTP id 4AABC1D9C4 for ; Wed, 29 Apr 2020 12:30:14 +0200 (CEST) Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 2A3819C4; Wed, 29 Apr 2020 06:30:13 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Wed, 29 Apr 2020 06:30:13 -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= HOpRbivUGyHkydaxAi1jHlHtxm1m79VfGkoi1QMi5dE=; b=ny2mvnOGEa0mglns c2TKp0YHpYbXSgviDejmqJO4UANsJ5Bt0fMJeA5FQL97U0zCW6gSfR84Es680+KR gqKdMmVtb3qfjYUypXtB8eEvOk8vo7r8kEwPkri2lEv5p45vxx0DNDdaj0WqkW+Y uJSQoY8W8WFaiZQgPXQKTyQ1B/64xdl2+LOJDsFa0TELqds/vW+8n31P8vv0SARM nJKhQz3OFcGdeNbuEdHbkgEP3dBAWYjbz30zzHIGCZuFIXv8Z3SuJeaa78VR9GOR 9xcwdx4I4RMHqb3uXHI619V1zS2DptDJ4oQsfBlymK8JxOWfAbOUNJZWdLk6LR4K /ofb4g== 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=HOpRbivUGyHkydaxAi1jHlHtxm1m79VfGkoi1QMi5 dE=; b=yY+ESifzRP9tRdgPFwtfaj5RXsoCN/KS2ZzgbKDDTG3hg2x2STH7A1nLv /HpjsiHaUxwY8kKhVGlv1DaZI6VWoZGxfARvj5dBy8UeSFYVXyFMdVOeSW+Lo5+g isP25oD43rAslkoyWEQcpfpWWxFFBvjs+6UyIzQ++ZQZFBDNYWZ5oKYyCaQlT5sy JPVThY/WfMegulf49C4Tq/ntiuLhBPHWulZKXQnSgL+64ivCeqGuutdymAj1QF0E O5xnkE+6im1Gf0r+rxwDKjJKUJ5SVq3PgpmeY67XC+pzvWfOWxyKTp8xJp7Tbda4 oprvMuFLrEj0Wv3JoTaRQ6EbYYksQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrieefgddvkecutefuodetggdotefrodftvf 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 B2A853065EF1; Wed, 29 Apr 2020 06:30:11 -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:30:10 +0200 Message-ID: <3026171.lh7rkWDJqb@thomas> In-Reply-To: <20200429100831.398-6-bruce.richardson@intel.com> References: <20200429100831.398-1-bruce.richardson@intel.com> <20200429100831.398-6-bruce.richardson@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" 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" 29/04/2020 12:08, Bruce Richardson: > 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. Please could you add the error here? > 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. I feel we are doing something wrong. We should not have two .pc files. I also know that static linkage is generally badly supported in pkg-config... Please could you insert the output of pkg-config to help understanding? Thanks