aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2015-12-16 14:56:45 +0100
committerJakub Hrozek <jakub.hrozek@posteo.se>2015-12-16 15:02:41 +0100
commitcfaeb340b7113c32c6e1ee64b1573a91b8ffdbef (patch)
tree21fc87da60f5d5663eda55bb994647b309ee2fc5
parent17829648912840f679e26d1f32d3d8db2f189eff (diff)
downloadpam_wrapper-cfaeb340b7113c32c6e1ee64b1573a91b8ffdbef.tar.gz
pam_wrapper-cfaeb340b7113c32c6e1ee64b1573a91b8ffdbef.tar.xz
pam_wrapper-cfaeb340b7113c32c6e1ee64b1573a91b8ffdbef.zip
link with libdl explicitly
-rw-r--r--rpm/pam_wrapper.spec2
-rw-r--r--src/CMakeLists.txt2
2 files changed, 2 insertions, 2 deletions
diff --git a/rpm/pam_wrapper.spec b/rpm/pam_wrapper.spec
index 3a4f6cb..8dd20b7 100644
--- a/rpm/pam_wrapper.spec
+++ b/rpm/pam_wrapper.spec
@@ -92,7 +92,7 @@ popd
%check
pushd obj
-make test
+ctest -V
popd
%files
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 80b19d3..713625b 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -15,7 +15,7 @@ if (HAVE_OPENPAM)
list(APPEND PAM_WRAPPER_LIBRARIES pam)
endif (HAVE_OPENPAM)
-target_link_libraries(pam_wrapper ${PAM_WRAPPER_LIBRARIES})
+target_link_libraries(pam_wrapper ${PAM_WRAPPER_LIBRARIES} ${DLFCN_LIBRARY})
set_target_properties(
pam_wrapper