X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=netdata-installer.sh;h=fa69de196d1076dd2a48551639685b4431e334a4;hb=ab05dd5f3986e7022437a6a48d276ffe90c7bd06;hp=874315437ec13e1961fcafb0c8009db371168689;hpb=cb3de051a98b67bd90c8d025d1e8f15228af9ba5;p=netdata.git diff --git a/netdata-installer.sh b/netdata-installer.sh index 87431543..fa69de19 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 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="" ${ME}