From 3874856f2b3112a450b33f815cc526cec42c4f97 Mon Sep 17 00:00:00 2001 From: Sidi Liang <1467329765@qq.com> Date: Sat, 7 Oct 2023 14:34:12 +0800 Subject: [PATCH] Specify mmacosx-version-min in makefile So apparently the static linking isn't working --- makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makefile b/makefile index 5dba41c..9cd7d14 100644 --- a/makefile +++ b/makefile @@ -1,7 +1,7 @@ STD=c++17 OS := $(shell uname) ifeq ($(OS), Darwin) - CXXFLAGS=-std=$(STD) -c -O3 -fno-exceptions -fPIC -stdlib=libc++ -static-libstdc++ -l:libc++abi.a -static-libgcc + CXXFLAGS=-std=$(STD) -c -O3 -fno-exceptions -fPIC -mmacosx-version-min=10.15 else CXXFLAGS=-std=$(STD) -c -O3 -fno-exceptions -fPIC endif