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 edca9171e..04f44ef74 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -654,7 +654,7 @@ sssd_be_SOURCES = \
src/providers/dp_refresh.c \
$(SSSD_FAILOVER_OBJ)
sssd_be_LDADD = \
- -ldl \
+ $(LIBADD_DL) \
$(SSSD_LIBS) \
$(CARES_LIBS) \
libsss_util.la
@@ -1026,7 +1026,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 f8c5a5c0c..03070239a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -19,6 +19,7 @@ AM_PROG_CC_C_O
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])