Received: by 2002:a05:6359:322:b0:b3:69d0:12d8 with SMTP id ef34csp57936rwb; Wed, 10 Aug 2022 14:48:01 -0700 (PDT) X-Google-Smtp-Source: AA6agR6CRHQy8gc8J9m30Jg13hr+T8ANPR3vKBFGDLHLsTllLE33unlCmKLu8QsPb3yM0PvcfDCQ X-Received: by 2002:a17:902:b28a:b0:171:3543:6b40 with SMTP id u10-20020a170902b28a00b0017135436b40mr5152255plr.109.1660168080868; Wed, 10 Aug 2022 14:48:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660168080; cv=none; d=google.com; s=arc-20160816; b=qn1vANkjAtrAxQiRC+IGAITLeSiulu7neCrHmc0siJDqZWZ8qRpTdD+JIAFYqtS2eU a2bIU1JLxAku6/9AvaOTv/uj2XLye9eCwwyDcwu2P9oYdgcxMcjMOfFNpPVQx+sbaayR Zy1q+2sjocfgY+ZUVRquCjMMOS+jRYaZ/+ES5i5vHxTQuccNzu37jd/qGOcOyLu3t3lT DNpT4aSVlzF5rKVMvYO5xn2A7jFWZWE2BJZDg1ruFjKQ7zQnUvY+eUrlwyNPuSM2Z9FY jvB6Jbpcs4M/bZG2F5t7JcWoDcLI+rGMt41UgmurAZzKcRI3afvicmW5eo4jdNKGCHck AZ5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=T4vuoQbApKzH/yJxnDsZysCJo3nTC12XPp3VHtF4QAY=; b=naOOhQluNwVzP/i4I46fQLz7jC0h5YJq/+/ZMSB3NKNSiyjYXSCaAa406fp1w8W23u GMbr9GT6We0ygGToE409pdTIKg2JOifD0kW0ZcKthFG7V5P8mhYouEG9zfi7p2mUlZBF 0hPpBPy86RQHrRbD4QqSluxnTj2jokVh+FKSN66SapfCJbEIEA/D5C2cAjI1V+/aNNNb Ii+W19LJXGSlc1+bUvxZz8oT3U9rLWOFWxl3AuLaMdv7C271qWcEtp8Wq4bJD0gNajhE W7dN9OsClFxBABu/2vYp6R5ohwWx9oO7+eQVcVkGIPtFQ2cfMccCA4ja9W2c7+OfXx2Z ah1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aruba.it header.s=a1 header.b="c4/sYuIO"; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jg9-20020a17090326c900b0016dc106d19dsi15926333plb.527.2022.08.10.14.47.37; Wed, 10 Aug 2022 14:48:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@aruba.it header.s=a1 header.b="c4/sYuIO"; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229522AbiHJVnt (ORCPT + 99 others); Wed, 10 Aug 2022 17:43:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229487AbiHJVns (ORCPT ); Wed, 10 Aug 2022 17:43:48 -0400 Received: from smtpcmd01-ws.aruba.it (smtpcmd01-ws.aruba.it [62.149.158.241]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1815478597 for ; Wed, 10 Aug 2022 14:43:45 -0700 (PDT) Received: from [192.168.8.155] ([86.32.63.136]) by Aruba Outgoing Smtp with ESMTPSA id LtUNontjlr8wyLtUNoBOLy; Wed, 10 Aug 2022 23:43:43 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1660167823; bh=QCxRxmbQuIApGysGG9B0QIxEDbIDHK6u+qp8oRGYtyk=; h=Date:MIME-Version:Subject:To:From:Content-Type; b=c4/sYuIOaCzzqRuo9Sz+hQhE6qxsp00E8UcZbaDkOkYPHWOWyeGqRSr6OcKp35IcT qB+5rbPVA80DNkTK2p3uO32V8FxraXGZ0uXeVXsxAwHJ+0xlhGstPn0YR6CD6gI/01 hn06YLTadzHGHnfgqvgm+coXfpqQQy+uUWAqw5/oMlcPMVto7nVu+XAfT6sfE4WRdC zQg/uHDETVy49RQ0QlRwfoKgu5NylEmUjDUrWWCJxMsj/UHu/oTbiGEDTpqzWKDWBX tntIsULCIBm0sUq7LJyMvQ5Cz+/eCCPcnuNVPGXlHtHlf3Jpy5+K25evnbdpcuQbAZ EwJGA8ExpSbLQ== Message-ID: <07d99979-a395-64a9-f051-e400bfefe1ca@benettiengineering.com> Date: Wed, 10 Aug 2022 23:43:43 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.1.0 Subject: Re: [PATCH v2] nfsrahead: fix linking while static linking Content-Language: en-US To: linux-nfs@vger.kernel.org References: <20220809221252.772891-1-giulio.benetti@benettiengineering.com> <20220809223308.1421081-1-giulio.benetti@benettiengineering.com> From: Giulio Benetti In-Reply-To: <20220809223308.1421081-1-giulio.benetti@benettiengineering.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4xfJR9mRo8g+8zegvuCHs7ySCxf8PYuhO/Jxb2xDaKH2BkAUnRquhOLnxE1RiShibTz88BwOQlFDpef1fpkFvGB9kmOQYOdEkumdhGKkQmqkdBWOAc4DT5 roLiOyslBMi7W8/fiEx2p/FKDljWIeBHRmttcv9trJwK6LkG6UJPTCKmE04Fa/TkNEydfYOLNjEB4k2CZAZtBe+kuHsjuJ714DbrYeBFbRt60WABqZJpaO46 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,NICE_REPLY_A,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Hi All, please drop this patch in favor of upcoming V3. This is not a good way to use pkg-config with Autotools. Sorry for the noise Best regards -- Giulio Benetti Benetti Engineering sas On 10/08/22 00:33, Giulio Benetti wrote: > -lmount must preceed -lblkid and to obtain this let's add: > `pkg-config --libs mount` > in place of: > `-lmount` > This ways the library order will always be correct. > > Signed-off-by: Giulio Benetti > --- > V1->V2: > * modify pkg-conf to pkg-config > --- > tools/nfsrahead/Makefile.am | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/nfsrahead/Makefile.am b/tools/nfsrahead/Makefile.am > index 845ea0d5..280a2eb4 100644 > --- a/tools/nfsrahead/Makefile.am > +++ b/tools/nfsrahead/Makefile.am > @@ -1,6 +1,6 @@ > libexec_PROGRAMS = nfsrahead > nfsrahead_SOURCES = main.c > -nfsrahead_LDFLAGS= -lmount > +nfsrahead_LDFLAGS= `pkg-config --libs mount` > nfsrahead_LDADD = ../../support/nfs/libnfsconf.la > > man5_MANS = nfsrahead.man