diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2015-10-05 11:15:43 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2015-10-05 11:15:43 +0200 |
commit | 5fa6d1a632505789409a2ba6cf8e112529f9db18 (patch) | |
tree | 9666bad5a3b4ebd4c9dfabbe5b0f67617e075c00 /Makefile.flags | |
parent | 12efcf3285a75d197704d2eef23824b3e4f11e66 (diff) | |
download | busybox-w32-5fa6d1a632505789409a2ba6cf8e112529f9db18.tar.gz busybox-w32-5fa6d1a632505789409a2ba6cf8e112529f9db18.tar.bz2 busybox-w32-5fa6d1a632505789409a2ba6cf8e112529f9db18.zip |
Aboriginal linux/musl build fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'Makefile.flags')
-rw-r--r-- | Makefile.flags | 2 |
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 | |||
126 | LDLIBS += m | 126 | LDLIBS += m |
127 | endif | 127 | endif |
128 | 128 | ||
129 | ifeq ($(CONFIG_LINK_WITH_PTHREAD),y) | ||
129 | 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) | 130 | 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) |
130 | ifeq ($(PTHREAD_AVAILABLE),y) | 131 | ifeq ($(PTHREAD_AVAILABLE),y) |
131 | LDLIBS += pthread | 132 | LDLIBS += pthread |
132 | endif | 133 | endif |
134 | endif | ||
133 | 135 | ||
134 | ifeq ($(CONFIG_PAM),y) | 136 | ifeq ($(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 |