From 6dd10d140e0e54f962240e0315f824a063bcfb3a Mon Sep 17 00:00:00 2001 From: Kelvin Sherlock Date: Tue, 13 Jun 2017 14:25:16 -0400 Subject: [PATCH] use -static flag for mingw --- Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Makefile b/Makefile index 5bec923..b107e28 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,18 @@ LINK.o = $(LINK.cc) CXXFLAGS += -std=c++11 -g -Wall +# static link if using mingw32 or mingw64 to make redistribution easier. +# also add mingw directory. +ifeq ($(MSYSTEM),MINGW32) + LDFLAGS += -static +endif + +ifeq ($(MSYSTEM),MINGW64) + LDFLAGS += -static +endif + + + .PHONY: all all : dot_clean applesingle appledouble