summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-04-30 18:30:16 +0200
committerGünther Deschner <gd@samba.org>2008-04-30 18:34:50 +0200
commitba7c63eafd83a8b29e60e0f7b9b5808529304014 (patch)
tree5455998a03c09e0cea39de5e781e6bcdb87cd667
parent3c709e20772333f64501747107bbb70d43f6f262 (diff)
downloadsamba-ba7c63eafd83a8b29e60e0f7b9b5808529304014.tar.gz
pam_winbind: Fix Bug #5430 (patch from fumiyas@osstech.co.jp).
Guenther
-rw-r--r--source/Makefile.in2
-rw-r--r--source/configure.in2
2 files changed, 3 insertions, 1 deletions
diff --git a/source/Makefile.in b/source/Makefile.in
index f37a94e35a5..b45dbe6dd5a 100644
--- a/source/Makefile.in
+++ b/source/Makefile.in
@@ -1299,7 +1299,7 @@ bin/winbindd@EXEEXT@: proto_exists $(WINBINDD_OBJ) @BUILD_POPT@ bin/.dummy
bin/pam_winbind.@SHLIBEXT@: $(PAM_WINBIND_OBJ) bin/.dummy
@echo "Linking shared library $@"
@$(SHLD) $(LDSHFLAGS) -o $@ $(PAM_WINBIND_OBJ) -lpam @INIPARSERLIBS@ $(GPLIBS) \
- @SONAMEFLAG@`basename $@`
+ @PAM_WINBIND_EXTRA_LIBS@ @SONAMEFLAG@`basename $@`
bin/builtin.@SHLIBEXT@: proto_exists $(AUTH_BUILTIN_OBJ)
@echo "Building plugin $@"
diff --git a/source/configure.in b/source/configure.in
index 9c31de4bf3b..16a841c43de 100644
--- a/source/configure.in
+++ b/source/configure.in
@@ -5808,6 +5808,7 @@ case "$host_os" in
WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o \
nsswitch/winbind_nss_linux.o"
WINBIND_NSS_EXTRA_LIBS="-lsocket"
+ PAM_WINBIND_EXTRA_LIBS="-lsocket"
;;
*hpux11*)
WINBIND_NSS_EXTRA_OBJS="nsswitch/winbind_nss_solaris.o"
@@ -5832,6 +5833,7 @@ AC_SUBST(WINBIND_NSS_LDSHFLAGS)
AC_SUBST(WINBIND_NSS_EXTRA_OBJS)
AC_SUBST(WINBIND_NSS_EXTRA_LIBS)
AC_SUBST(NSSSONAMEVERSIONSUFFIX)
+AC_SUBST(PAM_WINBIND_EXTRA_LIBS)
AC_SUBST(SMB_KRB5_LOCATOR)