Updated makefile to make compiled elf a tad smaller
This commit is contained in:
parent
f59be8398d
commit
fd7cb064e2
1 changed files with 3 additions and 0 deletions
3
makefile
3
makefile
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue