From 31e69340ce8950cd2fb7025282424e6549cb0ab2 Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Tue, 19 Nov 2019 18:09:14 -0700 Subject: [PATCH] libtt: add -ltirpc as a dependency if we are using it This means that when linking against libtt, libtirpc should also automatically be linked in if we determined that we are using tirpc. This avoids having to link every program that uses libtt (almost all of them) from having to have a $(TIRPCLIB) added to their link commands. --- cde/lib/tt/lib/Makefile.am | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cde/lib/tt/lib/Makefile.am b/cde/lib/tt/lib/Makefile.am index 9fedc6188..52bcc2974 100644 --- a/cde/lib/tt/lib/Makefile.am +++ b/cde/lib/tt/lib/Makefile.am @@ -21,4 +21,8 @@ if SOLARIS libtt_la_LIBADD += -lnsl -lsocket -lintl -ldl -lc -lw endif +if LINUX +libtt_la_LIBADD += $(TIRPCLIB) +endif + libtt_la_LDFLAGS = -version-info 2:1:0