Compile static mingw executables with -static argument

This commit is contained in:
Pali Rohár 2020-04-06 00:09:52 +02:00
parent c40602c2b3
commit 8fc9a6d8ad
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ dll-%.o: %.c
# --enable-stdcall-fixup
%-static.exe: %.o libminiupnpc.a
$(CC) -o $@ $^ $(LDLIBS)
$(CC) -static -o $@ $^ $(LDLIBS)
%-shared.exe: %-shared.o miniupnpc.lib
$(CC) -o $@ $^ $(LDLIBS)