]> granicus.if.org Git - libtirpc/commitdiff
Don't link against libnsl
authorThorsten Kukuk <kukuk@suse.de>
Wed, 29 Apr 2015 16:12:32 +0000 (12:12 -0400)
committerSteve Dickson <steved@redhat.com>
Wed, 29 Apr 2015 21:06:04 +0000 (17:06 -0400)
all source files containing references to yp_get_default_domain
are disabled in the Makefile and will never be compiled.
As long as we don't change that, we shouldn't link libtirpc against
libnsl.

Since libnsl uses RPC functions, this could lead to a dependency loop
in worst case on some systems.

Signed-off-by: Steve Dickson <steved@redhat.com>
configure.ac

index 2bdecc5d59ed9eb0b251f5c561d0e9f214edc7a9..9781a7c771e3c5cd77a0b014081de665a2d96a59 100644 (file)
@@ -42,7 +42,6 @@ AC_HEADER_DIRENT
 AC_PREFIX_DEFAULT(/usr)
 AC_CHECK_HEADERS([arpa/inet.h fcntl.h libintl.h limits.h locale.h netdb.h netinet/in.h stddef.h stdint.h stdlib.h string.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h syslog.h unistd.h features.h])
 AC_CHECK_LIB([pthread], [pthread_create])
-AC_CHECK_LIB([nsl], [yp_get_default_domain])
 AC_CHECK_FUNCS([getrpcbyname getrpcbynumber setrpcent endrpcent getrpcent])
 
 AC_CONFIG_FILES([Makefile src/Makefile man/Makefile doc/Makefile])