makefile: assure that macOS 11 (XCode 12) can use libpthread

If the Xcode environment provides an particular include file, its
related library file will be available at link and presumably run time
This commit is contained in:
Mark Pizzolato 2020-11-25 04:43:22 -08:00
parent b471f16a0a
commit 86889c662c

View file

@ -495,6 +495,12 @@ ifeq (${WIN32},) #*nix Environments (&& cygwin)
ifneq (,$(findstring Haiku,$(OSTYPE)))
OS_CCDEFS += -DUSE_READER_THREAD -DSIM_ASYNCH_IO
$(info using libpthread: $(call find_include,pthread))
else
ifeq (Darwin,$(OSTYPE))
OS_CCDEFS += -DUSE_READER_THREAD -DSIM_ASYNCH_IO
OS_LDFLAGS += -lpthread
$(info using macOS libpthread: $(call find_include,pthread))
endif
endif
endif
LIBEXT = $(LIBEXTSAVE)