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 2151FA2EF3 for ; Sun, 15 Sep 2019 14:06:10 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 076C51BF55; Sun, 15 Sep 2019 14:06:10 +0200 (CEST) Received: from mail-io1-f66.google.com (mail-io1-f66.google.com [209.85.166.66]) by dpdk.org (Postfix) with ESMTP id BD79F1BEEE for ; Sun, 15 Sep 2019 14:06:06 +0200 (CEST) Received: by mail-io1-f66.google.com with SMTP id h144so72393841iof.7 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=B+9TMOFfEhuBG8cRILRpVyMBLzkeOfhbaN4udFT3s8jWo/rc45cJwfbAoFCUakRiUV CMfAJhjQ6GJtu7I/Ak+nAhsieW2RpEV8qwxyimSZfVdYLnJ6yX4gJ7ie+lusbm90ESDx vK+jGGAuZXY9SLHWbqZ+6Ya3NBiJVAHNEDf0MACIxPlA+ZP3BkzAwo0PI42+vvWiS7zI pMYwpOgw9VjtZMrIzPAtiz/mm2651rxhU7CBxkyd3buqQ7LH/DCW4UWWRLk6TYrHRleN cojazcOYQlMJpu553BE2KRc5fQVG+SrlmsoTTcTd4+K+T9C5LWbQ+a3ffd8sf1uHe31p qwrA== X-Gm-Message-State: APjAAAWDBYO+4IoXRxobFN+wW5CGmy26aahmElrkrXJ6e0NbztqdNEAm s1raC/XGjIWXPgaGNQ2RU4iDZ3m0IEmpNBzKBqlszQ== 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-stable] [PATCH 2/2] net/szedata2: fix dependency check X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" 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 >