From: Ruben Kerkhof Date: Wed, 24 Dec 2014 19:22:04 +0000 (+0100) Subject: Remove hardcoded -lresolv, -lnsl and -lsocket X-Git-Tag: rec-3.7.0-rc1~6^2~5^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=29403f48fe888460010a9ae7f5b90dcccc597ced;p=pdns 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 --- diff --git a/configure.ac b/configure.ac index d43b6af42..daad9ad65 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