From 79f96edcb6cb178a7e820a92164aaa9a5b379468 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 19 Jun 2021 20:13:28 +0100 Subject: [PATCH] Avoid using -pthreads on Haiku. --- make/template/main.mk | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/make/template/main.mk b/make/template/main.mk index a280c8f97..9ebb8fef1 100644 --- a/make/template/main.mk +++ b/make/template/main.mk @@ -102,8 +102,9 @@ endif # The libc++ and libstdc++ implementation still requires # manually linking against pthreads on all systems other than macOS -# where pthreads is linked by default as part of libSystem. -ifneq ($(SYSTEM), darwin) +# and Haiku where pthreads are linked by default as part of libSystem +# and libroot respectively. +ifneq ($(SYSTEM), $(filter $(SYSTEM), darwin haiku)) LDLIBS += -pthread endif