From 1f5e9fd8029821e2f66a8559c513f6abbec76f24 Mon Sep 17 00:00:00 2001 From: himie Date: Tue, 14 Jul 2020 14:38:20 -0500 Subject: [PATCH] Add large address aware flag This allows the final exe to use more than 2gb of RAM in a 64-bit system which should get rid of most out of memory errors on 32-bit builds --- src/win32/Makefile.cfg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/win32/Makefile.cfg b/src/win32/Makefile.cfg index e9e18280..6286a18b 100644 --- a/src/win32/Makefile.cfg +++ b/src/win32/Makefile.cfg @@ -164,3 +164,7 @@ else endif LIBS+=-ldiscord-rpc endif + +ifndef MINGW64 + LDFLAGS+=-Wl,--large-address-aware +endif