From 6f1b2f101f64278dadc12a746f83df0a09a53ab0 Mon Sep 17 00:00:00 2001 From: Yamagi Burmeister Date: Fri, 16 Jun 2017 13:48:58 +0200 Subject: [PATCH] Enforce static linkage of libgcc on Windows. --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index eb96775..574f65d 100644 --- a/Makefile +++ b/Makefile @@ -62,6 +62,8 @@ endif # Base LDFLAGS. ifeq ($(OSTYPE), Darwin) LDFLAGS := -shared -arch i386 -arch x86_64 +else ifeq ($(OSTYPE), Windows) +LDFLAGS := -shared -static-libgcc else LDFLAGS := -shared endif