aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.flags7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile.flags b/Makefile.flags
index bb90a08de..b29b06839 100644
--- a/Makefile.flags
+++ b/Makefile.flags
@@ -121,11 +121,16 @@ endif
121# fall back to using a temp file: 121# fall back to using a temp file:
122CRYPT_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) 122CRYPT_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)
123ifeq ($(CRYPT_AVAILABLE),y) 123ifeq ($(CRYPT_AVAILABLE),y)
124LDLIBS += m crypt pthread 124LDLIBS += m crypt
125else 125else
126LDLIBS += m 126LDLIBS += m
127endif 127endif
128 128
129PTHREAD_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)
130ifeq ($(PTHREAD_AVAILABLE),y)
131LDLIBS += pthread
132endif
133
129ifeq ($(CONFIG_PAM),y) 134ifeq ($(CONFIG_PAM),y)
130# libpam uses libpthread, libdl and libaudit, so for static builds busybox 135# libpam uses libpthread, libdl and libaudit, so for static builds busybox
131# must be linked to libpthread, libdl and libaudit. On some platforms that 136# must be linked to libpthread, libdl and libaudit. On some platforms that