]> granicus.if.org Git - pdns/commitdiff
Remove hardcoded -lresolv, -lnsl and -lsocket
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Wed, 24 Dec 2014 19:22:04 +0000 (20:22 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Fri, 2 Jan 2015 18:51:51 +0000 (19:51 +0100)
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

index d43b6af4260c8ded96ff2bd4efb3325b86242136..daad9ad65ba68423cbf0b9d712ee8be6b80a109c 100644 (file)
@@ -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