Makefile: use -Os instead of -O2
-Os provides -O2 minus some optimizations that would increase size, plus optimizations that would decreaze size, plus -Os usually takes caching into account. -Os Optimize for size. -Os enables all -O2 optimizations that do not typically increase code size. It also performs further optimizations designed to reduce code size.
This commit is contained in:
parent
8317a261c0
commit
c7cc3281a8
2
Makefile
2
Makefile
|
@ -1,6 +1,6 @@
|
||||||
CC ?= gcc
|
CC ?= gcc
|
||||||
STRIP ?= strip
|
STRIP ?= strip
|
||||||
CFLAGS ?= -O2
|
CFLAGS ?= -Os
|
||||||
LDFLAGS += -lxcb
|
LDFLAGS += -lxcb
|
||||||
CFDEBUG = -g3 -pedantic -Wall -Wunused-parameter -Wlong-long\
|
CFDEBUG = -g3 -pedantic -Wall -Wunused-parameter -Wlong-long\
|
||||||
-Wsign-conversion -Wconversion -Wimplicit-function-declaration
|
-Wsign-conversion -Wconversion -Wimplicit-function-declaration
|
||||||
|
|
Loading…
Reference in New Issue
Block a user