From 86889c662cdbf409dc87154b05df9447cb7c1f38 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Wed, 25 Nov 2020 04:43:22 -0800 Subject: [PATCH] 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 --- makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/makefile b/makefile index e567a932..acbc2d01 100644 --- a/makefile +++ b/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)