From 86fcbddaf654aec40c6fe6a8293f627340331b0c Mon Sep 17 00:00:00 2001 From: Matthew Tran <0e4ef622@gmail.com> Date: Mon, 28 Oct 2024 00:19:38 -0500 Subject: [PATCH] Add compiler flags to reduce binary size --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a518f3d..43f53fb 100644 --- a/Makefile +++ b/Makefile @@ -1,2 +1,5 @@ +# optional flags that make the stripped binary smaller +EXTRAFLAGS = -D__USE_MINGW_ANSI_STDIO=0 -Wl,--disable-reloc-section -fno-asynchronous-unwind-tables -O2 + winediscordipcbridge.exe: main.c - i686-w64-mingw32-gcc -masm=intel main.c -o winediscordipcbridge + i686-w64-mingw32-gcc $(EXTRAFLAGS) -masm=intel main.c -o winediscordipcbridge