Updated makefile to make compiled elf a tad smaller

This commit is contained in:
AnnaSnoeijs 2025-08-15 02:51:31 +02:00
parent f59be8398d
commit fd7cb064e2

View file

@ -24,6 +24,9 @@ FLAGS += -Wlogical-op
FLAGS += -Wdisabled-optimization FLAGS += -Wdisabled-optimization
FLAGS += -fanalyzer FLAGS += -fanalyzer
FLAGS += -flto FLAGS += -flto
FLAGS += -fuse-ld=gold
FLAGS += -s
flags += -Wl,--gc-sections
# These flags are because of the compiler otherwise giving too much warning # These flags are because of the compiler otherwise giving too much warning
#FLAGS += -Wno-sign-conversion #FLAGS += -Wno-sign-conversion
#FLAGS += -Wformat-truncation=0 #FLAGS += -Wformat-truncation=0