]> granicus.if.org Git - pdns/commitdiff
Any recent system has RTLD_NOW
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Wed, 24 Dec 2014 22:54:08 +0000 (23:54 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Tue, 24 Feb 2015 13:42:17 +0000 (14:42 +0100)
And we checked them all...

configure.ac
pdns/ueberbackend.cc

index f31b0746cbd44f2bc277e9327f03d46999a14070..0a1df8a19a1df42ab4fb35b4bd9b40bc0727ffb7 100644 (file)
@@ -124,20 +124,6 @@ AS_IF([test "x$lt_cv_dlopen" = "xno"],
 
 AC_SUBST([LIBDL], [$lt_cv_dlopen_libs])
 
-AC_MSG_CHECKING([for RTLD_NOW]);
-ac_save_LIBS="$LIBS"
-LIBS="$LIBS $LIBDL"
-AC_LINK_IFELSE(
-  [AC_LANG_PROGRAM([[#include <dlfcn.h>]],
-    [[(void) dlopen("",RTLD_NOW);]])],
-  [has_RTLD_NOW=yes],
-  [has_RTLD_NOW=no])
-AC_MSG_RESULT([$has_RTLD_NOW])
-if test "$has_RTLD_NOW" = "no"; then
-  AC_DEFINE(NEED_RTLD_NOW,,[If host OS misses RTLD_NOW])
-fi
-LIBS=$ac_save_LIBS
-
 THREADFLAGS=""
 
 case "$host_os" in
index 629cbdbd0b4fec3e04a56d15761e724814233611..a130027d77191d5d25cc62354556d6770f090483 100644 (file)
@@ -60,10 +60,6 @@ bool UeberBackend::d_go=false;
 pthread_mutex_t  UeberBackend::d_mut = PTHREAD_MUTEX_INITIALIZER;
 pthread_cond_t UeberBackend::d_cond = PTHREAD_COND_INITIALIZER;
 
-#ifdef NEED_RTLD_NOW
-#define RTLD_NOW RTLD_LAZY
-#endif
-
 //! Loads a module and reports it to all UeberBackend threads
 bool UeberBackend::loadmodule(const string &name)
 {