mirror of
https://github.com/sheumann/hush.git
synced 2025-01-10 16:29:44 +00:00
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>
This commit is contained in:
parent
ef7aa46bc4
commit
5560e1af0a
@ -105,7 +105,14 @@ LDLIBS += m
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_PAM),y)
|
ifeq ($(CONFIG_PAM),y)
|
||||||
LDLIBS += pam pam_misc
|
# 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.)
|
||||||
|
LDLIBS += pam pam_misc pthread
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_SELINUX),y)
|
ifeq ($(CONFIG_SELINUX),y)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user