summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2015-09-29 09:02:51 +0200
committerLukas Slebodnik <lslebodn@redhat.com>2015-09-30 07:33:33 +0200
commit73ec8fdfddb2d4bf99977f758eec80e1b1ee8542 (patch)
tree857f50d738996d819cde123bd42d403bd41f8c9d
parentafdc0179af0ad8ddbedd67422193ef02dcd2bf84 (diff)
downloadsssd-73ec8fdfddb2d4bf99977f758eec80e1b1ee8542.tar.gz
sssd-73ec8fdfddb2d4bf99977f758eec80e1b1ee8542.tar.xz
sssd-73ec8fdfddb2d4bf99977f758eec80e1b1ee8542.zip
BUILD: Link test_data_provider_be with -ldl
The module data_provider_be.o uses uncfion dlsym and thus need to be linked with -ldl. /usr/bin/ld: src/providers/test_data_provider_be-data_provider_be.o: undefined reference to symbol 'dlsym@@GLIBC_2.2.5' /usr/lib64/libdl.so.2: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status Makefile:10461: recipe for target 'test_data_provider_be' failed It was not a problem when sssd was compiled with NSS because it contains -ldl among its flags. NSS_LIBS='-lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4 -lpthread -ldl ' However the compilation failed when sssd was compiled with libcrypto Reviewed-by: Michal Židek <mzidek@redhat.com>
-rw-r--r--Makefile.am1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 511d1196a..aae123c18 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -2605,6 +2605,7 @@ test_data_provider_be_LDADD = \
$(PAM_LIBS) \
$(SSSD_LIBS) \
$(SSSD_INTERNAL_LTLIBS) \
+ $(LIBADD_DL) \
libsss_test_common.la \
libdlopen_test_providers.la \
$(NULL)