From: Ruben Kerkhof Date: Wed, 24 Dec 2014 22:54:08 +0000 (+0100) Subject: Any recent system has RTLD_NOW X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~111^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1993%2Fhead;p=thirdparty%2Fpdns.git Any recent system has RTLD_NOW And we checked them all... --- diff --git a/configure.ac b/configure.ac index f31b0746cb..0a1df8a19a 100644 --- a/configure.ac +++ b/configure.ac @@ -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 ]], - [[(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 diff --git a/pdns/ueberbackend.cc b/pdns/ueberbackend.cc index 629cbdbd0b..a130027d77 100644 --- a/pdns/ueberbackend.cc +++ b/pdns/ueberbackend.cc @@ -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) {