Linux: Remove unused code from final binary
Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
parent
ff509ed6b5
commit
839c6fc1e6
@ -8,8 +8,9 @@ CFLAGS := $(CFLAGS) -Og -g
|
||||
CXXFLAGS := $(CXXFLAGS) -Og -g
|
||||
else
|
||||
CPPFLAGS := $(CPPFLAGS) -DNDEBUG
|
||||
CFLAGS := $(CFLAGS) -O3
|
||||
CXXFLAGS := $(CXXFLAGS) -O3
|
||||
CFLAGS := $(CFLAGS) -O3 -fdata-sections -ffunction-sections
|
||||
CXXFLAGS := $(CXXFLAGS) -O3 -fdata-sections -ffunction-sections
|
||||
LDFLAGS := $(LDFLAGS) -Wl,--gc-sections
|
||||
endif
|
||||
|
||||
OBJS := $(SRCS:%=%.o)
|
||||
|
Loading…
x
Reference in New Issue
Block a user