From 4157bbc1bf96b843a0bac42fbf47ae9371feae59 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Wed, 24 Dec 2014 23:54:08 +0100 Subject: [PATCH] Any recent system has RTLD_NOW And we checked them all... --- configure.ac | 14 -------------- pdns/ueberbackend.cc | 4 ---- 2 files changed, 18 deletions(-) diff --git a/configure.ac b/configure.ac index f31b0746c..0a1df8a19 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 629cbdbd0..a130027d7 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) { -- 2.40.0