From 37f7c5476d7e023d8a103f0ecf8f636afe671090 Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Sat, 7 Jan 2023 10:43:32 +1100 Subject: [PATCH] roken: fix Solaris build libroken needs to be linked against libnsl for inet_ntoa() --- cf/sunos.m4 | 1 + lib/roken/Makefile.am | 3 +++ 2 files changed, 4 insertions(+) diff --git a/cf/sunos.m4 b/cf/sunos.m4 index 938fc3a5e..d9aa52cb6 100644 --- a/cf/sunos.m4 +++ b/cf/sunos.m4 @@ -26,4 +26,5 @@ if test "$sunos" != no; then AC_DEFINE_UNQUOTED(SunOS, $sunos, [Define to what version of SunOS you are running.]) fi +AM_CONDITIONAL(SUNOS, test "$sunos" != no) ]) diff --git a/lib/roken/Makefile.am b/lib/roken/Makefile.am index f6d038f3f..0201a2c5a 100644 --- a/lib/roken/Makefile.am +++ b/lib/roken/Makefile.am @@ -198,6 +198,9 @@ EXTRA_libroken_la_SOURCES = \ vis.hin libroken_la_LIBADD = @LTLIBOBJS@ $(LIB_crypt) $(LIB_pidfile) +if SUNOS +libroken_la_LIBADD += -lnsl +endif $(LTLIBOBJS) $(libroken_la_OBJECTS): roken.h $(XHEADERS)