makefiles: allow to skip pthread (for termux)

This commit is contained in:
Philippe Teuwen
2020-05-15 17:40:59 +02:00
parent 94e1a9e680
commit 5984e1c03e
2 changed files with 8 additions and 2 deletions

View File

@@ -22,7 +22,10 @@ vpath %.dic dictionaries
OBJDIR = obj
LDLIBS ?= -L/usr/local/lib
LDLIBS += -lreadline -lpthread -lm
LDLIBS += -lreadline -lm
ifneq ($(SKIPPTHREAD),1)
LDLIBS += -lpthread
endif
# RPi Zero gcc requires -latomic
# but MacOSX /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld