From c7cc3281a8e00e6c07d025da8789ed6113f75683 Mon Sep 17 00:00:00 2001 From: Ivan Kanakarakis Date: Tue, 17 Jul 2012 14:36:20 +0300 Subject: [PATCH] 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. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 395425c..2112c5f 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ CC ?= gcc STRIP ?= strip -CFLAGS ?= -O2 +CFLAGS ?= -Os LDFLAGS += -lxcb CFDEBUG = -g3 -pedantic -Wall -Wunused-parameter -Wlong-long\ -Wsign-conversion -Wconversion -Wimplicit-function-declaration