diff options
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 b29b068..2bc83d1 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 |