From d14f48a147190989d9b58f7b56429ac8711be077 Mon Sep 17 00:00:00 2001
From: Joel Grunbaum <joelgrun@gmail.com>
Date: Tue, 11 Jan 2022 07:32:46 +0000
Subject: [PATCH] Don't static compile on Darwin systems

---
 Makefile |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index bcc17bc..c4a87c1 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,10 @@
+OS=$(shell uname)
 CXX=g++
-CXXFLAGS=-g -Wall -static
-#LDFLAGS=-rpath=/lib64/libstdc++.so.6
+CXXFLAGS=-g -Wall --std=c++20
 
+ifneq ($(OS),Darwin)
+CXXFLAGS += -static
+endif
 
 json=json.o
 ws=easywsclient/easywsclient.o

--
Gitblit v1.9.3