summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am4
-rw-r--r--configure.ac1
2 files changed, 3 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index b192d410b..c79095b38 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -716,7 +716,7 @@ sssd_be_SOURCES = \
src/providers/dp_refresh.c \
$(SSSD_FAILOVER_OBJ)
sssd_be_LDADD = \
- -ldl \
+ $(LIBADD_DL) \
$(SSSD_LIBS) \
$(CARES_LIBS) \
$(SSSD_INTERNAL_LTLIBS)
@@ -1092,7 +1092,7 @@ simple_access_tests_CFLAGS = \
$(CHECK_CFLAGS) \
-DUNIT_TESTING
simple_access_tests_LDADD = \
- -ldl \
+ $(LIBADD_DL) \
$(SSSD_LIBS) \
$(CARES_LIBS) \
$(CHECK_LIBS) \
diff --git a/configure.ac b/configure.ac
index 250f3d73f..2e92cd98b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -21,6 +21,7 @@ AM_PROG_AR
AC_DISABLE_STATIC
AC_PROG_INSTALL
AC_PROG_LIBTOOL
+LT_LIB_DLLOAD
AC_CONFIG_MACRO_DIR([m4])
AM_GNU_GETTEXT([external])
AM_GNU_GETTEXT_VERSION([0.14])