]> asedeno.scripts.mit.edu Git - PuTTY.git/commit - mkfiles.pl
Fix PE header of the VS2015 builds so they run on Windows XP.
authorSimon Tatham <anakin@pobox.com>
Sat, 21 Jan 2017 14:55:53 +0000 (14:55 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 21 Jan 2017 14:55:53 +0000 (14:55 +0000)
commit23a9d5608c2c1bad56b14d6ec66b08f4c0401b5d
treef861595327f09e8f5ecae48d2c1a6a094cf1c6a2
parent27e58f826f95056d6abc5820266bcdb9fdc7632c
Fix PE header of the VS2015 builds so they run on Windows XP.

By default the VS2015 linker produces binaries with the minimum
version fields in the PE header set to 06.00, which causes XP not to
recognise them as valid binaries at all. But there's no other reason
VS2015-built binaries _can't_ run on versions of Windows as old as XP;
so here I add the link option to set those fields to 05.01 which makes
XP like them again.

This only applies to the 32-bit build, because the VS2015 64-bit
linker refuses to lower the min version field to under 06.00.
Buildscr
mkfiles.pl