From ef9773c8e77346bd0d52a827b0f9a1b0e3b4ccfd Mon Sep 17 00:00:00 2001 From: "Timur I. Bakeyev" Date: Sun, 7 Jun 2009 17:05:23 +0000 Subject: Fix make test_pam_modules In Samba3 there is a very handy Makefile target 'test_pam_modules'. It let quickly veryfy, that obtained PAM module actually is loadable and doesn't miss any dependency libs. the only problem that on FreeBSD it doesn't work OOTB, as it unconditionally adds -ldl to the list of libraries when FreeBSD doesn't have it and doesn't need it. This small patch fixes the problem for FreeBSD and, I hope, still valid for othe systems, where -ldl is required. Has to be tested there though. With regards, Timur Bakeyev. Signed-off-by: Stefan Metzmacher --- source3/Makefile.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3/Makefile.in') diff --git a/source3/Makefile.in b/source3/Makefile.in index f54fa6bd91..c6acb537a4 100644 --- a/source3/Makefile.in +++ b/source3/Makefile.in @@ -53,6 +53,7 @@ AWK=@AWK@ PICFLAG=@PICFLAG@ DYNEXP=@DYNEXP@ PERL=@PERL@ +LIBDL=@LIBDL@ PIDL_ARGS=@PIDL_ARGS@ @@ -3164,7 +3165,7 @@ test_pam_modules:: pam_modules @$(LIB_PATH_VAR)=./bin && \ export $(LIB_PATH_VAR) && \ for module in $(PAM_MODULES); do \ - ./script/tests/dlopen.sh -lpam -ldl bin/$${module}.@SHLIBEXT@ \ + ./script/tests/dlopen.sh -lpam ${LIBDL} bin/$${module}.@SHLIBEXT@ \ || exit 1; \ done -- cgit