summaryrefslogtreecommitdiffstats
path: root/debian
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-09-25 09:18:33 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-09-25 09:18:33 -0700
commitf6e3b1da96fbe5c901e67d789a1523c986d6678e (patch)
treee8d82c1b7d030c59f1ebe093a392e1c39c30227f /debian
parentc31e78dd4ac8b86fde9e8f46a40246c49044d5d8 (diff)
downloadquagga-f6e3b1da96fbe5c901e67d789a1523c986d6678e.tar.bz2
quagga-f6e3b1da96fbe5c901e67d789a1523c986d6678e.tar.xz
Building with optimization for size gives better performance
The GCC -Os flag gives better performance for most code (except scientific) because the memory footprint is smaller and more likely to fit in cache.
Diffstat (limited to 'debian')
-rwxr-xr-xdebian/rules6
1 files changed, 1 insertions, 5 deletions
diff --git a/debian/rules b/debian/rules
index 29a6d9a9..67ee890b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -20,11 +20,7 @@ BUILD_STAMP=debian/build-stamp
CFLAGS = -Wall -g
WANT_SNMP=1
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
- CFLAGS += -O0
-else
- CFLAGS += -O2
-endif
+CFLAGS += -Os
ifeq ($(WANT_SNMP),1)
xable_snmp = --enable-snmp