public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nfsrahead: fix linking while static linking
@ 2022-08-09 22:12 Giulio Benetti
  2022-08-09 22:23 ` Giulio Benetti
  2022-08-09 22:33 ` [PATCH v2] " Giulio Benetti
  0 siblings, 2 replies; 13+ messages in thread
From: Giulio Benetti @ 2022-08-09 22:12 UTC (permalink / raw)
  To: linux-nfs; +Cc: Giulio Benetti

-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 <giulio.benetti@benettiengineering.com>
---
 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
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2022-09-13 21:06 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox