Enforce static linkage of libgcc on Windows.

This commit is contained in:
Yamagi Burmeister 2017-06-16 12:49:41 +02:00
parent 173892c2dc
commit 99a032c6ae

View file

@ -81,6 +81,8 @@ CFLAGS += -DOSTYPE=\"$(OSTYPE)\" -DARCH=\"$(ARCH)\"
# Base LDFLAGS. # Base LDFLAGS.
ifeq ($(OSTYPE), Darwin) ifeq ($(OSTYPE), Darwin)
LDFLAGS := -shared -arch i386 -arch x86_64 LDFLAGS := -shared -arch i386 -arch x86_64
else ifeq ($(OSTYPE), Windows)
LDFLAGS := -shared -static-libgcc
else else
LDFLAGS := -shared LDFLAGS := -shared
endif endif