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 --- .gitignore | 1 + Makefile | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index caa630c..9a70274 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,4 @@ oneshot build test +click \ No newline at end of file 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