public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH xfsprogs] libxcmd: link against used libs
@ 2016-08-09 14:43 Mike Frysinger
  2016-08-09 21:49 ` Dave Chinner
  0 siblings, 1 reply; 4+ messages in thread
From: Mike Frysinger @ 2016-08-09 14:43 UTC (permalink / raw)
  To: xfs

Since this lib uses symbols from libxfs (platform_findsizes) and many
symbols from libblkid, link against both.  Otherwise, the resulting
shared lib has missing symbols which makes linking against annoying.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 libxcmd/Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libxcmd/Makefile b/libxcmd/Makefile
index aab8d6d63624..46ba138a37e2 100644
--- a/libxcmd/Makefile
+++ b/libxcmd/Makefile
@@ -12,6 +12,8 @@ LT_AGE = 0
 
 CFILES = command.c input.c paths.c projects.c help.c quit.c topology.c
 
+LTLIBS = $(LIBXFS) $(LIBBLKID)
+
 ifeq ($(HAVE_GETMNTENT),yes)
 LCFLAGS += -DHAVE_GETMNTENT
 endif
-- 
2.9.0

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

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

end of thread, other threads:[~2016-08-10  2:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-09 14:43 [PATCH xfsprogs] libxcmd: link against used libs Mike Frysinger
2016-08-09 21:49 ` Dave Chinner
2016-08-10  1:52   ` Mike Frysinger
2016-08-10  2:19     ` Dave Chinner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox