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) |
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 LDLIBS += m endif +ifeq ($(CONFIG_LINK_WITH_PTHREAD),y) 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 +endif ifeq ($(CONFIG_PAM),y) # libpam uses libpthread, libdl and libaudit, so for static builds busybox |