Stefan Schuermans commited on 2017-10-28 20:54:26
Showing 2 changed files, with 5 additions and 0 deletions.
... | ... |
@@ -4,10 +4,13 @@ INCLUDE := -Icommon |
4 | 4 |
CFLAGS := -Wall -Wextra -Werror -O2 $(EXTRA_CFLAGS) |
5 | 5 |
LDFLAGS := $(EXTRA_LDFLAGS) |
6 | 6 |
LIBS := -lBlinkenLib $(EXTRA_LIBS) |
7 |
+LAST_LIBS := |
|
7 | 8 |
TARGET := Blinker |
8 | 9 |
ifeq ($(CROSS_WIN),1) |
9 | 10 |
CXX := x86_64-w64-mingw32-g++ |
10 | 11 |
PLATFORM := windows |
12 |
+LDFLAGS += -static |
|
13 |
+LAST_LIBS += -lws2_32 |
|
11 | 14 |
TARGET := Blinker.exe |
12 | 15 |
else |
13 | 16 |
CXX := g++ |
... | ... |
@@ -38,6 +41,7 @@ ifneq ($(MAKECMDGOALS),clean) |
38 | 41 |
endif |
39 | 42 |
|
40 | 43 |
DEFINE += -DBLINKER_CONFIG="\"$(CONFIG)\"" |
44 |
+LIBS += $(LAST_LIBS) |
|
41 | 45 |
|
42 | 46 |
config.mk: $(CFGS_MK) |
43 | 47 |
cat /dev/null $^ >$@ |
44 | 48 |