From patchwork Tue Aug 9 22:33:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 12940033 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A8912C19F2D for ; Tue, 9 Aug 2022 22:33:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229528AbiHIWdN (ORCPT ); Tue, 9 Aug 2022 18:33:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229445AbiHIWdM (ORCPT ); Tue, 9 Aug 2022 18:33:12 -0400 Received: from smtpcmd04135.aruba.it (smtpcmd04135.aruba.it [62.149.158.135]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7653D65645 for ; Tue, 9 Aug 2022 15:33:11 -0700 (PDT) Received: from localhost.localdomain ([86.32.63.136]) by Aruba Outgoing Smtp with ESMTPSA id LXmfon3hTVH2DLXmgo1l3i; Wed, 10 Aug 2022 00:33:10 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1660084390; bh=t0LqrTpTKZ+tAMorEWrtcYOweL+1cUK7/imJDcRMZ1M=; h=From:To:Subject:Date:MIME-Version; b=e0DzvhG95wZc9PyBnYn9J1aNUUqgN6qHqH/VbsBF4IqFwyUjmAAYUEYPY5N+ZHTUu 9bCZOctDiu0GLF1MCmsHVWI9i2q3M8PBr/3HgNuyexS6Jvf+eM8ITj4ihwhBfrLvBB BI1D6IkKvyXS1wyeZzggYPG8thIcBmbUtbYpHDaW1k6WRD/876ZQnoyQhSn+GR2Drv iiHNUjMY+3x9hL4UvmfJ6qUNTG1nXxn3AKyEDDrJdqGieQh80+2lC+1q55Z99qLAsh rEyDVR2Ghk2/ymIbobPX4Q2L3tCfXXGExSnPad0snT+AArYDnYjozO0gOEDbxgkyxs NB+EI8wCc2ruA== From: Giulio Benetti To: linux-nfs@vger.kernel.org Cc: Giulio Benetti Subject: [PATCH v2] nfsrahead: fix linking while static linking Date: Wed, 10 Aug 2022 00:33:08 +0200 Message-Id: <20220809223308.1421081-1-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220809221252.772891-1-giulio.benetti@benettiengineering.com> References: <20220809221252.772891-1-giulio.benetti@benettiengineering.com> MIME-Version: 1.0 X-CMAE-Envelope: MS4xfMO8Oh82DZP45DJxO5vZK/aihpeHhI/OwFEbjPCQMs0QHSN9awa/pwWnoGKZPWP5niTDdOZemT2tcWna8C6O1DYoaSOeAnN6DvkocoF+GBia4h39PNC0 Y3pjlyxs/gW4rqIEwfsRjS8S0fA8+7rdehPVZ27TCUswXLj3t/YHbBYmzwcK7TsncFoTpyv/cqwZoEsf6y78JSPXSStJerGJAOiuY0QWh/4ajRxDgpwLYcPq 6Vc2Pnllj7gfwJuD50nhyz9ocZFY7v8WBjINIowuJe/BpmZSGV1TcajwuKfAu9PW Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org -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