mirror of
https://github.com/sheumann/hush.git
synced 2025-02-27 13:29:36 +00:00
Makefile.flags: survive a build system which has no pthread
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
26c423d9a8
commit
2156e22853
@ -121,11 +121,16 @@ endif
|
|||||||
# fall back to using a temp file:
|
# fall back to using a temp file:
|
||||||
CRYPT_AVAILABLE := $(shell echo 'int main(void){return 0;}' >crypttest.c; $(CC) $(CFLAGS) -lcrypt -o /dev/null crypttest.c >/dev/null 2>&1 && echo "y"; rm crypttest.c)
|
CRYPT_AVAILABLE := $(shell echo 'int main(void){return 0;}' >crypttest.c; $(CC) $(CFLAGS) -lcrypt -o /dev/null crypttest.c >/dev/null 2>&1 && echo "y"; rm crypttest.c)
|
||||||
ifeq ($(CRYPT_AVAILABLE),y)
|
ifeq ($(CRYPT_AVAILABLE),y)
|
||||||
LDLIBS += m crypt pthread
|
LDLIBS += m crypt
|
||||||
else
|
else
|
||||||
LDLIBS += m
|
LDLIBS += m
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
PTHREAD_AVAILABLE := $(shell echo 'int main(void){return 0;}' >pthreadtest.c; $(CC) $(CFLAGS) -lpthread -o /dev/null pthreadtest.c >/dev/null 2>&1 && echo "y"; rm pthreadtest.c)
|
||||||
|
ifeq ($(PTHREAD_AVAILABLE),y)
|
||||||
|
LDLIBS += pthread
|
||||||
|
endif
|
||||||
|
|
||||||
ifeq ($(CONFIG_PAM),y)
|
ifeq ($(CONFIG_PAM),y)
|
||||||
# libpam uses libpthread, libdl and libaudit, so for static builds busybox
|
# libpam uses libpthread, libdl and libaudit, so for static builds busybox
|
||||||
# must be linked to libpthread, libdl and libaudit. On some platforms that
|
# must be linked to libpthread, libdl and libaudit. On some platforms that
|
||||||
|
Loading…
x
Reference in New Issue
Block a user