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
|
CXXFLAGS := $(CXXFLAGS) -Og -g
|
||||||
else
|
else
|
||||||
CPPFLAGS := $(CPPFLAGS) -DNDEBUG
|
CPPFLAGS := $(CPPFLAGS) -DNDEBUG
|
||||||
CFLAGS := $(CFLAGS) -O3
|
CFLAGS := $(CFLAGS) -O3 -fdata-sections -ffunction-sections
|
||||||
CXXFLAGS := $(CXXFLAGS) -O3
|
CXXFLAGS := $(CXXFLAGS) -O3 -fdata-sections -ffunction-sections
|
||||||
|
LDFLAGS := $(LDFLAGS) -Wl,--gc-sections
|
||||||
endif
|
endif
|
||||||
|
|
||||||
OBJS := $(SRCS:%=%.o)
|
OBJS := $(SRCS:%=%.o)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user