Skip to content

Commit 7dfd1cc

Browse files
rimrulGit for Windows Build Agent
authored and
Git for Windows Build Agent
committed
MinGW: link as terminal server aware
Whith Windows 2000, Microsoft introduced a flag to the PE header to mark executables as "terminal server aware". Windows terminal servers provide a redirected Windows directory and redirected registry hives when launching legacy applications without this flag set. Since we do not use any INI files in the Windows directory and don't write to the registry, we don't need this additional preparation. Telling the OS that we don't need this should provide slightly improved startup times in terminal server environments. When building for supported Windows Versions with MSVC the /TSAWARE linker flag is automatically set, but MinGW requires us to set the --tsaware flag manually. This partially addresses #3935. Signed-off-by: Matthias Aßhauer <[email protected]>
1 parent bc5190c commit 7dfd1cc

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
@@ -702,7 +702,7 @@ ifeq ($(uname_S),MINGW)
702702
DEFAULT_HELP_FORMAT = html
703703
HAVE_PLATFORM_PROCINFO = YesPlease
704704
CSPRNG_METHOD = rtlgenrandom
705-
BASIC_LDFLAGS += -municode
705+
BASIC_LDFLAGS += -municode -Wl,--tsaware
706706
COMPAT_CFLAGS += -DNOGDI -Icompat -Icompat/win32
707707
COMPAT_CFLAGS += -DSTRIP_EXTENSION=\".exe\"
708708
COMPAT_OBJS += compat/mingw.o compat/winansi.o \

0 commit comments

Comments
 (0)