Skip to content

Commit d4a9162

Browse files
committed
squash! mingw: replace mingw_startup() hack
after adjusting the MSVC linker flags to force it to use wmain(). Noticed by Ben Peart. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent f9be97d commit d4a9162

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config.mak.uname

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ ifeq ($(uname_S),Windows)
426426
compat/win32/pthread.o compat/win32/syslog.o \
427427
compat/win32/dirent.o compat/win32/fscache.o
428428
COMPAT_CFLAGS = -D__USE_MINGW_ACCESS -DDETECT_MSYS_TTY -DNOGDI -DHAVE_STRING_H -Icompat -Icompat/regex -Icompat/win32 -DSTRIP_EXTENSION=\".exe\"
429-
BASIC_LDFLAGS = -IGNORE:4217 -IGNORE:4049 -NOLOGO -SUBSYSTEM:CONSOLE
429+
BASIC_LDFLAGS = -IGNORE:4217 -IGNORE:4049 -NOLOGO -ENTRY:wmainCRTStartup -SUBSYSTEM:CONSOLE
430430
# invalidcontinue.obj allows Git's source code to close the same file
431431
# handle twice, or to access the osfhandle of an already-closed stdout
432432
# See https://msdn.microsoft.com/en-us/library/ms235330.aspx

0 commit comments

Comments
 (0)