From c73de57320aee834bb88c1a7f2da943c5387c9e2 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sat, 16 Sep 2023 09:51:47 +0200 Subject: [PATCH] make sure pthread and atomic isnt called in macOS --- tools/cryptorf/Makefile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/cryptorf/Makefile b/tools/cryptorf/Makefile index 0c4587f97..82d1d591c 100644 --- a/tools/cryptorf/Makefile +++ b/tools/cryptorf/Makefile @@ -12,13 +12,11 @@ INSTALLTOOLS = $(BINS) include ../../Makefile.host # checking platform can be done only after Makefile.host -# Atomic +# Atomic / pThread # RPi Zero gcc requires -latomic -MYLDLIBS += -latomic - # macOS might not like pthread? ifneq ($(platform),Darwin) - MYLDLIBS += -lpthread + MYLDLIBS += -lpthread -latomic endif # macOS needs c++14 standard when compiling c++