summaryrefslogtreecommitdiffstats
path: root/netdata-installer.sh
diff options
context:
space:
mode:
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2017-01-18 23:35:16 +0200
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>2017-01-18 23:35:16 +0200
commit24f08563cf6392082c18a73e20f077bec3bdb92e (patch)
treed37ece52862184b627fbfe0a346b698ffc60d499 /netdata-installer.sh
parent2ae1525b87b2e36cc1b528848f3a29e85561d551 (diff)
faster number parsing
Diffstat (limited to 'netdata-installer.sh')
-rwxr-xr-xnetdata-installer.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/netdata-installer.sh b/netdata-installer.sh
index ff8def5782..f6b4013cd4 100755
--- a/netdata-installer.sh
+++ b/netdata-installer.sh
@@ -22,7 +22,8 @@ processors=$(cat /proc/cpuinfo | grep ^processor | wc -l)
[ $(( processors )) -lt 1 ] && processors=1
# you can set CFLAGS before running installer
-CFLAGS="${CFLAGS--O3}"
+CFLAGS="${CFLAGS--O2}"
+[ "z${CFLAGS}" = "z-O3" ] && CFLAGS="-O2"
# keep a log of this command
printf "\n# " >>netdata-installer.log
@@ -112,7 +113,7 @@ Valid <installer options> are:
Use this option to allow it continue
without checking pkg-config.
-Netdata will by default be compiled with gcc optimization -O3
+Netdata will by default be compiled with gcc optimization -O2
If you need to pass different CFLAGS, use something like this:
CFLAGS="<gcc options>" ${ME} <installer options>