[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: [PATCH] Fix link failure on some platforms when PAM is enabled
From: Tristan Schmelcher <tristan_schmelcher () alumni ! uwaterloo ! ca>
Date: 2011-11-27 23:17:06
Message-ID: CAOHv88ODkvPP5h7nkbcaigOu0MF7TT5i=kqA62Y9fC4LGfe_Gg () mail ! gmail ! com
[Download RAW message or body]
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.)
["fix-pam-without-default-pthread.diff" (text/x-patch)]
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
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic