From fd7cb064e2ff97bf9a5a41d4aa28485abf4cf05b Mon Sep 17 00:00:00 2001 From: AnnaSnoeijs Date: Fri, 15 Aug 2025 02:51:31 +0200 Subject: [PATCH] Updated makefile to make compiled elf a tad smaller --- makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/makefile b/makefile index dd57147..add7d4b 100644 --- a/makefile +++ b/makefile @@ -24,6 +24,9 @@ FLAGS += -Wlogical-op FLAGS += -Wdisabled-optimization FLAGS += -fanalyzer FLAGS += -flto +FLAGS += -fuse-ld=gold +FLAGS += -s +flags += -Wl,--gc-sections # These flags are because of the compiler otherwise giving too much warning #FLAGS += -Wno-sign-conversion #FLAGS += -Wformat-truncation=0