Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp6436813rwb; Tue, 9 Aug 2022 15:35:20 -0700 (PDT) X-Google-Smtp-Source: AA6agR5EFYP3ce3UDieAXa3GmWsMfb4nfgWi5pJy8T16SVkFvBFQmpMbPvmXVqL/gxWFOQMfsXYB X-Received: by 2002:a05:6402:4441:b0:43d:5bcf:afa0 with SMTP id o1-20020a056402444100b0043d5bcfafa0mr23329338edb.91.1660084520637; Tue, 09 Aug 2022 15:35:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660084520; cv=none; d=google.com; s=arc-20160816; b=GH6687lLUcJIp/PEEYBQ+5NixXaZE7uAY3yNyMy+XdsGFRQYCdjv++gXyIQl7nLmzp eSNpwiM9LkGhaMDDQBXyr0Tz8Bd0Sh2O1zTs+jbCEjdvXLSVd/GtlJwMhN1sWZGSDC06 2AWNjyaekV8UP/TJEaTP5qWDjKDjrZuY++9DMKfqQL/C0F2q5atkhFAjzr0FK8CqUnMT iXMndmXwOiBRv4B+OdqVAgXOTWQKmMA6RmOb4nLNgfJFyWEbKxRWo/FFwePTRt+JyxhH fgVV2zex6iWXPrcFakz7oVc+6WnlKSXChVB5g0RUrjNNjCFRfK3d3zd1xL+SkIiGGR91 Yp7A== 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 :content-language:references:to:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=luewA+xieXp9dCffECwd7UUi6nWEYqOIVHJqP/e8tQg=; b=G7X/SH/arxu6AsaCGpoNqdpGEBbagrA1uS4LIqdPDtMB8jXqPsuqd078QHmd2zgpDy iWRU7rZbAbLLwDUDvKL0ZG0kRnXxEgmDVj/Jv6NoDQjn8WQaNbCo5QKyjPlARbr4y8YG d/isY+80vRRL7ldzvi9EbzQgB7YV+ZxA+J39+RrtL4Uwl9Pxb58Mm3/ak6NtfuNJBcjx UeFvKWZsIfKO2jhzlZxrQiTUqqvk+S4gzASEeo5NPbBQSq6A6G8w1U/MxGV+tmam2cE9 dME0ruN1KtFXQ58wMZFUF/p93P2XdgJMg8woOqhYkM6ZVosRlq3bJ9Pp3J8Wt5YQQueD 5aRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aruba.it header.s=a1 header.b=RXocDfko; 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 oz31-20020a1709077d9f00b0073043fdc917si3117424ejc.476.2022.08.09.15.34.48; Tue, 09 Aug 2022 15:35:20 -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=RXocDfko; 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 S229752AbiHIWXI (ORCPT + 99 others); Tue, 9 Aug 2022 18:23:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230098AbiHIWXH (ORCPT ); Tue, 9 Aug 2022 18:23:07 -0400 Received: from smtpcmd04135.aruba.it (smtpcmd04135.aruba.it [62.149.158.135]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EB91E5D0C5 for ; Tue, 9 Aug 2022 15:23:06 -0700 (PDT) Received: from [192.168.8.155] ([86.32.63.136]) by Aruba Outgoing Smtp with ESMTPSA id LXcvomt5OVH2DLXcvo1gL6; Wed, 10 Aug 2022 00:23:05 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1660083785; bh=px/hTelzb0pD7QKy2s3H5ZnBzpUwk6Ns4qMVbZ2sWqo=; h=Date:MIME-Version:Subject:To:From:Content-Type; b=RXocDfkoZ9Ku1iAiVk3h9XtFaX5+gkPelbLbpXa9AZuw55dnZJ74eoeJVCml6lWmc WNdp307o9eWxg1UaciqBfKHbDTiH+CXuzw6QmiLRFgTN+QUxvGOw5Iz5/SgAExDGb0 nYpLqhF72voo/FMqe4J/2jdGFy8qOYnqBSRU9wG1r69DQgSzeJsOUnKJwCz8IAUGnD sgUlN98aVcsA3ZJNbFjisDnlFaMVn5W0Qw6/vfqTpoNvnXHonhc2v6yddOaoxpdzSi UvuVVPt/bGqxlwrpc/GIe1MRX00YBCo/p0v3/h3Q0UKXZHLvDmRBlJsAchDfIUy0l7 V3oLmlyhtuw0Q== Message-ID: Date: Wed, 10 Aug 2022 00:23:05 +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] nfsrahead: fix linking while static linking To: linux-nfs@vger.kernel.org References: <20220809221252.772891-1-giulio.benetti@benettiengineering.com> Content-Language: en-US From: Giulio Benetti In-Reply-To: <20220809221252.772891-1-giulio.benetti@benettiengineering.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4xfAlczc4vE4pJVri8inikscyGjgXZXMNJMgsjy3O1ye7DxWIAgBlmq2RpujFO2p55s0hIFVeKLYEiQqcDdsNQXjPBueJbu984qERwXT80BQ2cECiVoD/X TxFwEl9slQsqDP6TLQJKJLjD4iA2JGrljYFw/XDvWm0JPwKfIYhcp70QOBDgztkl1PktPF3leS/p9PD+eJzGohRiODnQuDiEcJaIv4FqCxG+BUKIvOnuiYXq 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_H3, RCVD_IN_MSPIKE_WL,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 Pardon, s/pkg-conf/pkg-config I'm going to send V2 Best regards -- Giulio Benetti Benetti Engineering sas On 10/08/22 00:12, Giulio Benetti wrote: > -lmount must preceed -lblkid and to obtain this let's add: > `pkg-conf --libs mount` > in place of: > `-lmount` > This ways the library order will always be correct. > > Signed-off-by: Giulio Benetti > --- > 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..74fc344f 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-conf --libs mount` > nfsrahead_LDADD = ../../support/nfs/libnfsconf.la > > man5_MANS = nfsrahead.man