aboutsummaryrefslogtreecommitdiff
path: root/win32/amd64/Makefile
diff options
context:
space:
mode:
authorTakamichi Horikawa <takamichiho@gmail.com>2017-02-12 11:10:53 +0900
committerTakamichi Horikawa <takamichiho@gmail.com>2017-02-12 11:10:53 +0900
commit70740cb91024ea9d2eef79e37ea8a757e60ae13b (patch)
treea8176711a55362d174d5478e1cb6fb18bda1b898 /win32/amd64/Makefile
parent0fd0d1599e4fcc6b142aef0b8fb7b8b77e33ef91 (diff)
win32: use msvcrt
Diffstat (limited to 'win32/amd64/Makefile')
-rw-r--r--win32/amd64/Makefile6
1 files changed, 2 insertions, 4 deletions
diff --git a/win32/amd64/Makefile b/win32/amd64/Makefile
index 5769d7b..d3b0130 100644
--- a/win32/amd64/Makefile
+++ b/win32/amd64/Makefile
@@ -6,7 +6,7 @@ vpath %.rc ..
include ../fmplayer.mak
-OBJS=$(addsuffix .o,$(OBJBASE) uc $(RESBASE))
+OBJS=$(addsuffix .o,$(OBJBASE) $(RESBASE))
ARCH=x86_64
PREFIX=$(ARCH)-w64-mingw32-
CC=$(PREFIX)gcc
@@ -14,9 +14,7 @@ WINDRES=$(PREFIX)windres
STRIP=$(PREFIX)strip
CFLAGS=-std=c99 -Os -Wall -Wextra -pedantic -I../.. \
$(addprefix -D,$(DEFINES))
-LIBS=-nostdlib -s -Wl,-eentry \
- -Wl,--subsystem,windows \
- -lgcc -lntdll \
+LIBS=-s -mwindows -municode \
$(addprefix -l,$(LIBBASE))
$(TARGET): $(OBJS)