Enforce static linkage of libgcc on Windows.

This commit is contained in:
Yamagi Burmeister 2017-06-16 13:37:22 +02:00
parent 800a595225
commit 891e75c568

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