summaryrefslogtreecommitdiff
path: root/Make.rules
diff options
context:
space:
mode:
authorTimo Teras <timo.teras@iki.fi>2009-07-14 11:01:03 +0300
committerTimo Teras <timo.teras@iki.fi>2009-07-14 11:01:03 +0300
commite00f5ea74a448c1148725794d89a4149b98fdb11 (patch)
treeb7aa19538679b3478c614863129b27c5f8d1d01c /Make.rules
parentf1985b03bdf77c049cc28b25fe6275867c25ba49 (diff)
downloadapk-tools-e00f5ea74a448c1148725794d89a4149b98fdb11.tar.gz
apk-tools-e00f5ea74a448c1148725794d89a4149b98fdb11.tar.bz2
apk-tools-e00f5ea74a448c1148725794d89a4149b98fdb11.tar.xz
apk-tools-e00f5ea74a448c1148725794d89a4149b98fdb11.zip
build: optimize with -O2 by default
also make the array code more explicit to have gcc optimizer happy.
Diffstat (limited to 'Make.rules')
-rw-r--r--Make.rules2
1 files changed, 1 insertions, 1 deletions
diff --git a/Make.rules b/Make.rules
index fce3a77..aa1a8b3 100644
--- a/Make.rules
+++ b/Make.rules
@@ -67,7 +67,7 @@ LD := $(CROSS_COMPILE)ld
INSTALL := install
INSTALLDIR := $(INSTALL) -d
-CFLAGS ?= -g
+CFLAGS ?= -g -O2
CFLAGS_ALL := -Werror -Wall -Wstrict-prototypes -D_GNU_SOURCE -std=gnu99
CFLAGS_ALL += $(CFLAGS)