Optimization for 'monit'

Matthias Fischer matthias.fischer at ipfire.org
Wed Jun 5 08:52:46 BST 2019


Hi,

could someone please take a look at the '--enable-optimized'-option in
'monit'-configure:

The corresponding code from 'configure' reads:

...
# Check whether --enable-optimized was given.
if test "${enable_optimized+set}" = set; then :
  enableval=$enable_optimized;
        CFLAGS=`echo $CFLAGS|sed 's/-O.//g'`
        if test "x$enableval" = "xyes" ; then
                CFLAGS=`echo $CFLAGS|sed 's/-g[^ ]*//g'`
                CFLAGS=`echo $CFLAGS|sed 's/-O.//g'`
                CFLAGS="$CFLAGS -O3 -DNDEBUG"
                OPTIMIZED=1
        else
                OPTIMIZED=0
        fi
...

Since I'm not so good in 'CFGLAG'-options ( ;-) ), I'd like to know what
this option REALLY does and if we should use it - prior to pushing it to
GIT.

Second option would be '--without-ipv6' since I think we do not really
need this in v2.23.

Its running here on Core 131 - compiled with these two options and
without seen problems - but I just want to be sure.

What do you think?

Best,
Matthias


More information about the Development mailing list