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 1BC76A2EF3 for ; Sun, 15 Sep 2019 14:06:08 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id E2EEF1BF36; Sun, 15 Sep 2019 14:06:07 +0200 (CEST) Received: from mail-io1-f68.google.com (mail-io1-f68.google.com [209.85.166.68]) by dpdk.org (Postfix) with ESMTP id C017C1BF36 for ; Sun, 15 Sep 2019 14:06:06 +0200 (CEST) Received: by mail-io1-f68.google.com with SMTP id n197so72545736iod.9 for ; Sun, 15 Sep 2019 05:06:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netcope.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=urC3pA2Ozt5s9K4nENg0EjDWvsFp+esq8JUkM7JpBQ4=; b=nMarpm9abkb+leInKH6B3um8XP9v5QeyPfxYpIsDCUGsJi3WHEo97LzODvpv0g747O fvQIn1Hywdj/8rlHwkUrjulZ8CBAgdeOOph1roH9Csh20cDcX0envxtKcdAAKW/SqIYA AJXb929S65XTsf2S7JPsLXTz9Zru8kEpShsAqBnd7YMri3ulUpwCjBkFIBU5z5QkaoPJ jzez0XAHpSKEI5vn5f/oX4PBcbvY6JrVofM7IsEedqRaWCirXa0pP8goyL6P0c6qnFzJ gPkuIST16jGOECmWhn789zmyoJujuJA5n/srllBiuqvVOhR0OR4cs1yjSWWTmh6V8pJh h8CA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=urC3pA2Ozt5s9K4nENg0EjDWvsFp+esq8JUkM7JpBQ4=; b=bEhSVk7S5uN3x3zOM3XDLyLmsj1wblpocxnwo3bmG7gcOW+tBiphkB0pHcZyqygNBC lB6GUuIQorJTE17tP0NvnmYNRVsNfs83wtVzjDd77YftI31ShDkobWrN6ZCiUKFw9z3j 1iJBdq2m8iDaihsDsKMFPRdRStjkOoABEoudSLJHUb1FAB6Nx8lRKgxP5bG2KPUJkeOt M3FJv1aAU2sP6NDmUiYbsJWkc18Qx6hhqNQC5Y+WurRtzs2n+y9OjsDUjGlXVTjrS7+G 0MfMwklBZs9NtzSJsh9MRlDPBGfwebpYfj64ZY/OtvwurZ9hnzqUSDvxdd1Wl1ojlmdm Y9Ag== X-Gm-Message-State: APjAAAWCSI5vqoJP/uLGl1tdPMakakzGr+j+Q8FQBBhKtwVInIR/1G3Z Fpw9QC+36il/SVH4IOHBO6PJxUS/2F1x8+9LvmjowQ== X-Google-Smtp-Source: APXvYqxNYocLN/69ju0nlJCQygnU+PGIb0hA09cvbdj3nkaL1m2VBu/Ar9eunceVizkgQarN2CBdBgbYX29mihuko8k= X-Received: by 2002:a6b:8b50:: with SMTP id n77mr10608194iod.195.1568549166070; Sun, 15 Sep 2019 05:06:06 -0700 (PDT) MIME-Version: 1.0 References: <20190914093700.11451-1-thomas@monjalon.net> <20190914093700.11451-3-thomas@monjalon.net> In-Reply-To: <20190914093700.11451-3-thomas@monjalon.net> From: =?UTF-8?Q?Jan_Reme=C5=A1?= Date: Sun, 15 Sep 2019 14:05:55 +0200 Message-ID: To: Thomas Monjalon Cc: bruce.richardson@intel.com, Rastislav Cernay , dev@dpdk.org, stable@dpdk.org Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH 2/2] net/szedata2: fix dependency check 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 Sat, Sep 14, 2019 at 11:37 AM Thomas Monjalon wrote: > > The library libsze2 provides a pkg-config file: libsze2.pc. > Looking for this .pc file - with dependency() - is preferred > than looking for the library - with cc.find_library(). > > If the library is not installed in a standard path, > it can be found thanks to PKG_CONFIG_PATH variable. > The previous solution required to use CFLAGS and LDFLAGS > environment variables. > > Fixes: 508cfe6be9f1 ("net/szedata2: add to meson build") > Cc: stable@dpdk.org > > Signed-off-by: Thomas Monjalon Acked-by: Jan Remes > --- > drivers/net/szedata2/meson.build | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/szedata2/meson.build b/drivers/net/szedata2/meson.build > index 032b42518..b53fcbc59 100644 > --- a/drivers/net/szedata2/meson.build > +++ b/drivers/net/szedata2/meson.build > @@ -1,7 +1,7 @@ > # SPDX-License-Identifier: BSD-3-Clause > # Copyright(c) 2018 Intel Corporation > > -dep = cc.find_library('sze2', required: false) > +dep = dependency('libsze2', required: false) > build = dep.found() > reason = 'missing dependency, "libsze2"' > ext_deps += dep > -- > 2.23.0 >