use -static flag for mingw

This commit is contained in:
Kelvin Sherlock 2017-06-13 14:25:16 -04:00
parent 0dac8facb6
commit 6dd10d140e
1 changed files with 12 additions and 0 deletions

View File

@ -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