libpam uses libpthread, so for static builds busybox must be linked to
libpthread. On some platforms that requires an explicit -lpthread, so
it should be in LDLIBS. For non-static builds, scripts/trylink will
take care of removing -lpthread if possible. (Not bothering to check
CONFIG_STATIC because even in a non-static build it could be that the
only libpam available is libpam.a, so -lpthread could still be
needed.)
Index: Makefile.flags
===================================================================
--- Makefile.flags	(revision 3121)
+++ Makefile.flags	(revision 3122)
@@ -100,7 +100,7 @@
 LDLIBS += m crypt
 
 ifeq ($(CONFIG_PAM),y)
-LDLIBS += pam pam_misc
+LDLIBS += pam pam_misc pthread
 endif
 
 ifeq ($(CONFIG_SELINUX),y)
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to