From ed19d0718d6bd6e469ec03f21a3f83e08557b6d6 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Sat, 31 Aug 2013 07:08:32 +0200 Subject: AUTOMAKE: Use portable way to link with dlopen --- Makefile.am | 4 ++-- configure.ac | 1 + 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]) -- cgit