msysgit: Add the --large-address-aware linker directive to the makefile.
commit3e0716344f7316db8663d326d535dc05878b0f37
authorPierre le Riche <github@pleasedontspam.me>
Mon, 28 May 2012 07:46:54 +0000 (28 09:46 +0200)
committerErik Faye-Lund <kusmabite@gmail.com>
Fri, 4 Jan 2013 13:04:04 +0000 (4 14:04 +0100)
tree09215f5f31b36e02a1da758c6e808b46b2a2d2b4
parent0587f9fe3fd9f657a51a30c0b1466f5b58cbfe5e
msysgit: Add the --large-address-aware linker directive to the makefile.

This has the effect of increasing the address space from 2GB to 4GB under
64-bit Windows, reducing the likelihood of an "out of memory" error when
e.g.  repacking a large repository.  The test suite passes with this
patch, with and without the MEM_TOP_DOWN flag added to all VirtualAlloc
calls.  While this is no guarantee that there are no issues with large
memory support (it could break Git on other setups than mine, for
example), it at least increases the chance that nothing obvious goes wrong
(such as errors introduced by faulty sign extension, say, with ssize_t).

[PT: Resolves github issue #12]

Signed-off-by: Pierre le Riche <github@pleasedontspam.me>
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Makefile