fix MacOS compilation

This commit is contained in:
MrJs 2019-12-08 11:44:30 -08:00 committed by GitHub
parent 6c8e46763e
commit eaa2da4824
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,7 +136,9 @@ else ifeq ($(platform), osx)
endif
OSXVER = `sw_vers -productVersion | cut -d. -f 2`
OSX_LT_MAVERICKS = `(( $(OSXVER) <= 9)) && echo "YES"`
fpic += -mmacosx-version-min=10.1
fpic += -mmacosx-version-min=10.7
CXXFLAGS += -stdlib=libc++
LDFLAGS += -stdlib=libc++
# iOS
else ifneq (,$(findstring ios,$(platform)))