[PATCH] Fix link failure on some platforms when PAM is enabled

Tristan Schmelcher tristan_schmelcher at alumni.uwaterloo.ca
Sun Nov 27 23:17:06 UTC 2011


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.)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-pam-without-default-pthread.diff
Type: text/x-patch
Size: 318 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20111127/58df6411/attachment.bin>


More information about the busybox mailing list