aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Schmelcher <tristan_schmelcher@alumni.uwaterloo.ca>2011-12-05 04:38:58 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2011-12-05 04:38:58 +0100
commit5560e1af0ada7eb75e8bd4945e2c05ab5d31b415 (patch)
tree5b22ebada512080f65b5ebb8467b86182a722805
parentef7aa46bc4caa05e39458a47de02d0411e15f8d5 (diff)
downloadbusybox-w32-5560e1af0ada7eb75e8bd4945e2c05ab5d31b415.tar.gz
busybox-w32-5560e1af0ada7eb75e8bd4945e2c05ab5d31b415.tar.bz2
busybox-w32-5560e1af0ada7eb75e8bd4945e2c05ab5d31b415.zip
Fix link failure on some platforms when PAM is enabled
Signed-off-by: Tristan Schmelcher <tristan_schmelcher@alumni.uwaterloo.ca> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--Makefile.flags9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile.flags b/Makefile.flags
index 7e1c6030c..ee4c518d8 100644
--- a/Makefile.flags
+++ b/Makefile.flags
@@ -105,7 +105,14 @@ LDLIBS += m
105endif 105endif
106 106
107ifeq ($(CONFIG_PAM),y) 107ifeq ($(CONFIG_PAM),y)
108LDLIBS += pam pam_misc 108# libpam uses libpthread, so for static builds busybox must be linked to
109# libpthread. On some platforms that requires an explicit -lpthread, so
110# it should be in LDLIBS. For non-static builds, scripts/trylink will
111# take care of removing -lpthread if possible. (Not bothering to check
112# CONFIG_STATIC because even in a non-static build it could be that the
113# only libpam available is libpam.a, so -lpthread could still be
114# needed.)
115LDLIBS += pam pam_misc pthread
109endif 116endif
110 117
111ifeq ($(CONFIG_SELINUX),y) 118ifeq ($(CONFIG_SELINUX),y)