From: Steve Dickson <steved@redhat.com>
To: Giulio Benetti <giulio.benetti@benettiengineering.com>,
linux-nfs@vger.kernel.org
Subject: Re: [PATCH v3] nfsrahead: fix linking while static linking
Date: Tue, 13 Sep 2022 13:38:49 -0400 [thread overview]
Message-ID: <4e29b6ba-1824-e6a7-0f68-9c0aa90453cd@redhat.com> (raw)
In-Reply-To: <20220810214554.107094-1-giulio.benetti@benettiengineering.com>
On 8/10/22 5:45 PM, Giulio Benetti wrote:
> -lmount must preceed -lblkid and to obtain this let's add in configure.ac:
> PKG_CHECK_MODULES([LIBMOUNT], [mount])
> and in tools/nfsrahead/Makefile.am let's substitute explicit `-lmount`
> with:
> $(LIBMOUNT_LIBS)
> This way all the required libraries will be present and in the right order
> when static linking.
>
> Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Committed... (tag: nfs-utils-2-6-3-rc1)
steved
> ---
> V1->V2:
> * modify pkg-conf to pkg-config
> V2->V3:
> * use the correct way for using pkg-config with Autotools
> ---
> configure.ac | 3 +++
> tools/nfsrahead/Makefile.am | 2 +-
> 2 files changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/configure.ac b/configure.ac
> index f1c46c5c..ff85200b 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -273,6 +273,9 @@ AC_LIBCAP
> dnl Check for -lxml2
> AC_LIBXML2
>
> +dnl Check for -lmount
> +PKG_CHECK_MODULES([LIBMOUNT], [mount])
> +
> # Check whether user wants TCP wrappers support
> AC_TCP_WRAPPERS
>
> diff --git a/tools/nfsrahead/Makefile.am b/tools/nfsrahead/Makefile.am
> index 845ea0d5..7e08233a 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= $(LIBMOUNT_LIBS)
> nfsrahead_LDADD = ../../support/nfs/libnfsconf.la
>
> man5_MANS = nfsrahead.man
prev parent reply other threads:[~2022-09-13 18:23 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-09 22:12 [PATCH] nfsrahead: fix linking while static linking Giulio Benetti
2022-08-09 22:23 ` Giulio Benetti
2022-08-09 22:33 ` [PATCH v2] " Giulio Benetti
2022-08-10 21:43 ` Giulio Benetti
2022-08-10 21:45 ` [PATCH v3] " Giulio Benetti
2022-08-11 20:20 ` Petr Vorel
2022-08-11 20:36 ` Giulio Benetti
2022-08-22 19:17 ` Steve Dickson
2022-08-22 20:33 ` Giulio Benetti
2022-09-13 15:55 ` Steve Dickson
2022-09-13 15:56 ` Petr Vorel
2022-09-13 21:06 ` Giulio Benetti
2022-09-13 17:38 ` Steve Dickson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4e29b6ba-1824-e6a7-0f68-9c0aa90453cd@redhat.com \
--to=steved@redhat.com \
--cc=giulio.benetti@benettiengineering.com \
--cc=linux-nfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox