aboutsummaryrefslogtreecommitdiff
path: root/Makefile.flags
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.flags')
-rw-r--r--Makefile.flags2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile.flags b/Makefile.flags
index b29b06839..2bc83d1d9 100644
--- a/Makefile.flags
+++ b/Makefile.flags
@@ -126,10 +126,12 @@ else
126LDLIBS += m 126LDLIBS += m
127endif 127endif
128 128
129ifeq ($(CONFIG_LINK_WITH_PTHREAD),y)
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) 130PTHREAD_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) 131ifeq ($(PTHREAD_AVAILABLE),y)
131LDLIBS += pthread 132LDLIBS += pthread
132endif 133endif
134endif
133 135
134ifeq ($(CONFIG_PAM),y) 136ifeq ($(CONFIG_PAM),y)
135# libpam uses libpthread, libdl and libaudit, so for static builds busybox 137# libpam uses libpthread, libdl and libaudit, so for static builds busybox