>From 050ae51ee249747a9e31354fd638a20e8ac1aec0 Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Sat, 31 Aug 2013 07:08:32 +0200 Subject: [PATCH 4/8] 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 b913a12b895d68f1f3e23c185e493e576641d0e2..5225fe2c5895024fe4489096594c9c88eb859b5e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -718,7 +718,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) @@ -1095,7 +1095,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 511e8d6c8afbfb0cbf5aca076b460aa4c881e252..39f6a31977aceb110d7366a0540b0d1322ce3281 100644 --- a/configure.ac +++ b/configure.ac @@ -20,6 +20,7 @@ m4_ifdef([AM_PROG_AR], [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]) -- 1.8.3.1