Specify mmacosx-version-min in makefile

So apparently the static linking isn't working
This commit is contained in:
Sidi Liang 2023-10-07 14:34:12 +08:00 committed by GitHub
parent 56e3e4353b
commit 3874856f2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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