From 61bf664fdacca5d0c2aafcb5e28faf5253e772db Mon Sep 17 00:00:00 2001 From: d0k3 Date: Sun, 29 Oct 2017 14:58:55 +0100 Subject: [PATCH] Always link compiler libs statically on Windows. --- ctrtool/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ctrtool/Makefile b/ctrtool/Makefile index 8f07f97..798f688 100644 --- a/ctrtool/Makefile +++ b/ctrtool/Makefile @@ -15,14 +15,14 @@ ifneq (, $(findstring linux, $(SYS))) else ifneq(, $(findstring cygwin, $(SYS))) # Cygwin CFLAGS += -Wno-unused-but-set-variable -DUSE_FILE32API - LIBS += -liconv + LIBS += -liconv -static-libgcc -static-libstdc++ else ifneq(, $(findstring darwin, $(SYS))) # OS X LIBS += -liconv else #Windows Build CFG CFLAGS += -Wno-unused-but-set-variable - LIBS += -static-libgcc + LIBS += -static-libgcc -static-libstdc++ endif main: $(OBJS)