configure: Omit -O2 from CFLAGS when configuring with --enable-coverage.
authorBen Pfaff <blp@nicira.com>
Fri, 2 Jan 2015 22:36:53 +0000 (14:36 -0800)
committerBen Pfaff <blp@nicira.com>
Mon, 12 Jan 2015 16:16:37 +0000 (08:16 -0800)
commit27a79a4422ae4b0331aa3700d311e023a162ad22
tree6022390707e9a85d8cad015e2de975b4811e18ab
parent04009853bbad2220e6864429b135bdc51539a621
configure: Omit -O2 from CFLAGS when configuring with --enable-coverage.

CFLAGS follows OVS_CFLAGS in the compiler command line, and should, so that
the user can override any automatically determined compiler options.  That
means that the -O0 that the code here added to OVS_CFLAGS didn't really
have any effect since CFLAGS by default includes "-O2".  However, we do
really want to disable optimizations (because the coverage reports are hard
to interpret with optimizations), so this commit changes the configure
script to edit out -O2 from CFLAGS, leaving any other default or
user-specified options.

Reported-by: Mijo Safradin <mijo@linux.vnet.ibm.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
m4/openvswitch.m4