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 D6FA3A00BE; Wed, 29 Apr 2020 12:40:37 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 98C791D9D5; Wed, 29 Apr 2020 12:40:36 +0200 (CEST) Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by dpdk.org (Postfix) with ESMTP id 6B0011D9C4 for ; Wed, 29 Apr 2020 12:40:34 +0200 (CEST) Received: by mail-wm1-f68.google.com with SMTP id x25so1476889wmc.0 for ; Wed, 29 Apr 2020 03:40:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:content-transfer-encoding:user-agent:mime-version; bh=Zs+gGvpXwvSaTkmh8cAOdKNXh7CWjmv1FEW1ZeCtoOU=; b=iXBT0Jfpm3S4ybXv1bOYwdjQGkzv3+sq+9Cp/dguVGLUYW/9q5V9usqu+0GELcFWrt bg61XXY4PZLTCfE3dFhi2hZEOj8fzjwSH3Jndb+lL5HRxEXtwl7NzOdGhOifdTzLE/Vu ozyogeYRL+HTR1zhWMMmq2pnbk2hkq5FvMYhksvd9eNDvHUafJs0bm6ieUncZYNtbyDk wV5tofjSzWV/2ysuAaBme3uQyHaWBI0qofHL2M/IYh2LC+OtW8RJ6j1X8+eewrInl4Df mMDA6GArfPp/WxsmuF3KzfVQtVtnw64nWZwImGrkjOTZCQCcVJnsunidxz09IblO7amW H5Kg== X-Gm-Message-State: AGi0PuaYSLtbZdX6NXaOx8XynC8legYEcGigju8MJcMfELGAScZHtenS DvVvso7yg94K65dh1QcqAjk= X-Google-Smtp-Source: APiQypJZJiFp3AHmQMLmK8kohCEsCt85MdRjvV3T3xFzgbvlq4XgkbYt65rBUgr74J3uGTOZm07viw== X-Received: by 2002:a1c:6455:: with SMTP id y82mr2496374wmb.128.1588156834177; Wed, 29 Apr 2020 03:40:34 -0700 (PDT) Received: from localhost ([88.98.246.218]) by smtp.gmail.com with ESMTPSA id c1sm30779770wrc.4.2020.04.29.03.40.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Apr 2020 03:40:33 -0700 (PDT) Message-ID: From: Luca Boccassi To: Bruce Richardson , dev@dpdk.org Cc: thomas@monjalon.net, david.marchand@redhat.com, ktraynor@redhat.com Date: Wed, 29 Apr 2020 11:40:33 +0100 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> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.30.5-1.1 MIME-Version: 1.0 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, 2020-04-29 at 11:08 +0100, Bruce Richardson wrote: > When calling pkg-config --static --libs, pkg-config will always output th= e > regular libs first, and then the extra libs from libraries.private field, > since the assumption is that those are additional dependencies for buildi= ng > statically that the .a files depend upon. >=20 > 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 --=20 Kind regards, Luca Boccassi