Fix make test_pam_modules
authorTimur I. Bakeyev <timur@com.bat.ru>
Sun, 7 Jun 2009 17:05:23 +0000 (17:05 +0000)
committerStefan Metzmacher <metze@samba.org>
Mon, 8 Jun 2009 11:20:54 +0000 (13:20 +0200)
commitef9773c8e77346bd0d52a827b0f9a1b0e3b4ccfd
treedc70a83b45275ed0e263712c096520e7084f5e9d
parenta7cd66728b4b35dbb7686108bcf8e100d663aad7
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 <metze@samba.org>
source3/Makefile.in
source3/script/tests/dlopen.sh