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:
parent
b471f16a0a
commit
86889c662c
1 changed files with 6 additions and 0 deletions
6
makefile
6
makefile
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue