From 29403f48fe888460010a9ae7f5b90dcccc597ced Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Wed, 24 Dec 2014 20:22:04 +0100 Subject: [PATCH] Remove hardcoded -lresolv, -lnsl and -lsocket We already check for the functions we need in libnsl and libsocket, and I assume we don't need libresolv Should fix #1967 --- configure.ac | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/configure.ac b/configure.ac index d43b6af426..daad9ad65b 100644 --- a/configure.ac +++ b/configure.ac @@ -145,13 +145,13 @@ THREADFLAGS="" case "$host_os" in solaris2.10) - LIBS="-lposix4 -lresolv -lnsl -lsocket -lpthread -lrt $LIBS" + LIBS="-lposix4 -lpthread -lrt $LIBS" CXXFLAGS="-D_REENTRANT $CXXFLAGS" ;; solaris2.8 | solaris2.9 ) AC_DEFINE(NEED_POSIX_TYPEDEF,,[If POSIX typedefs need to be defined]) AC_DEFINE(NEED_INET_NTOP_PROTO,,[If your OS is so broken that it needs an additional prototype]) - LIBS="-lposix4 -lresolv -lnsl -lsocket -lpthread $LIBS" + LIBS="-lposix4 -lpthread $LIBS" CXXFLAGS="-D_REENTRANT $CXXFLAGS" ;; linux*) @@ -300,17 +300,6 @@ for a in $modules; do if test ${a} = "gpgsql"; then LIBS="$LIBS $LIBCRYPT" - - case "$host_os" in - freebsd*) - ;; - darwin*) - modulelibs="$modulelibs -lresolv" - ;; - *) - modulelibs="$modulelibs -lresolv -lnsl" - ;; - esac fi done -- 2.47.2