Link MSVCR statically

This commit is contained in:
Andrés 2017-12-17 13:54:57 -05:00 committed by GitHub
parent f3cdebfa26
commit f3ca27f370
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -456,13 +456,8 @@ CXXFLAGS += -Od -Zi -DDEBUG -D_DEBUG
endif endif
else else
ifneq (,$(findstring msvc,$(platform))) ifneq (,$(findstring msvc,$(platform)))
ifeq ($(STATIC_LINKING),1)
CFLAGS += -MT CFLAGS += -MT
CXXFLAGS += -MT CXXFLAGS += -MT
else
CFLAGS += -MD
CXXFLAGS += -MD
endif
CFLAGS += -O2 -DNDEBUG CFLAGS += -O2 -DNDEBUG
CXXFLAGS += -O2 -DNDEBUG CXXFLAGS += -O2 -DNDEBUG