roken: fix Solaris build

libroken needs to be linked against libnsl for inet_ntoa()
This commit is contained in:
Luke Howard
2023-01-07 10:43:32 +11:00
parent ece456b028
commit 37f7c5476d
2 changed files with 4 additions and 0 deletions

View File

@@ -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)
])

View File

@@ -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)