msysgit: Add the --large-address-aware linker directive to the makefile.
commit2ab33b86cc62e52740a43921be351635d8c61e42
authorPierre le Riche <github@pleasedontspam.me>
Mon, 28 May 2012 07:46:54 +0000 (28 09:46 +0200)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Wed, 16 Jan 2013 09:50:28 +0000 (16 09:50 +0000)
tree6de179e446d0440c6c8ba742fa997b6107c87abd
parent3fc0bea0d8e42567523317bf4c4410100e3cc1f4
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