From 8337ed2a3fd819ab80641d0afc8f436db02fe4eb Mon Sep 17 00:00:00 2001 From: Jonathan Marler Date: Wed, 22 May 2019 16:13:05 -0600 Subject: [PATCH] Explicitly link to pthread --- posix.mak | 1 + 1 file changed, 1 insertion(+) diff --git a/posix.mak b/posix.mak index 32c11d0d2e3..eeea3c772dc 100644 --- a/posix.mak +++ b/posix.mak @@ -112,6 +112,7 @@ OUTFILEFLAG = -o NODEFAULTLIB=-defaultlib= -debuglib= ifeq (,$(findstring win,$(OS))) CFLAGS=$(MODEL_FLAG) -fPIC -DHAVE_UNISTD_H + NODEFAULTLIB += -L-lpthread ifeq ($(BUILD),debug) CFLAGS += -g else