]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
added --large-address-aware flag in windows builds
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 8 Aug 2007 04:13:17 +0000 (04:13 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 8 Aug 2007 04:13:17 +0000 (04:13 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7504 d7cf8633-e32d-0410-b094-e92efae38249

makefile.inc

index 208759023fb01aa6f0534ff258da38f63c2c77b6..8dc32881da78b4caf17c6d4f84b9f044e32ab7cc 100644 (file)
@@ -246,7 +246,8 @@ OBJ_WINCD=cd_win.o
 OBJ_WGL= builddate.c sys_win.o vid_wgl.o conproc.o $(OBJ_SND_WIN) $(OBJ_WINCD) $(OBJ_COMMON)
 
 # Link
-LDFLAGS_WINCOMMON=-lwinmm -lwsock32
+# Note that Windows Vista users may need --large-address-aware because Vista seems to map over 500MB of application address space for its own purposes, which is a significant chunk taken out of the default 2GB address space, this option raises the limit to 4GB (or 3GB on Vista 32 and older versions of Windows).
+LDFLAGS_WINCOMMON=-lwinmm -lwsock32 -Wl,--large-address-aware
 LDFLAGS_WINCL=$(LDFLAGS_WINCOMMON) -mwindows -luser32 -lgdi32 -ldxguid -ldinput -lcomctl32
 LDFLAGS_WINSV=$(LDFLAGS_WINCOMMON) -mconsole
 LDFLAGS_WINSDL=$(LDFLAGS_WINCOMMON) `$(SDL_CONFIG) --libs`