[PATCH] [FreeBSD 18] Fix make test_pam_modules
Timur I. Bakeyev
timur at com.bat.ru
Sun Jun 7 17:05:23 GMT 2009
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.
-------------- next part --------------
--- ./source3/Makefile.in.orig 2009-06-02 07:30:53.000000000 +0000
+++ ./source3/Makefile.in 2009-06-03 00:22:57.000000000 +0000
@@ -53,6 +53,7 @@
PICFLAG=@PICFLAG@
DYNEXP=@DYNEXP@
PERL=@PERL@
+LIBDL=@LIBDL@
PIDL_ARGS=@PIDL_ARGS@
@@ -3028,7 +3035,7 @@
@$(LIB_PATH_VAR)=./bin && \
export $(LIB_PATH_VAR) && \
for module in $(PAM_MODULES); do \
- ./script/tests/dlopen.sh -lpam -ldl bin/$${module}. at SHLIBEXT@ \
+ ./script/tests/dlopen.sh -lpam ${LIBDL} bin/$${module}. at SHLIBEXT@ \
|| exit 1; \
done
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-source3__script__tests__dlopen.sh
Type: application/x-sh
Size: 408 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20090607/2b55fcf1/patch-source3__script__tests__dlopen.sh
More information about the samba-technical
mailing list