scripts: disable optimization for ABI validation
authorFerruh Yigit <ferruh.yigit@intel.com>
Fri, 26 Aug 2016 15:06:40 +0000 (16:06 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 15 Sep 2016 12:51:48 +0000 (14:51 +0200)
abi-dumper giving following warning:
WARNING: incompatible build option detected: -O3

Although this patch won't fix warning, it is to ensure code compiled
with optimization disabled.

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
scripts/validate-abi.sh

index feda6c8..52e4e7a 100755 (executable)
@@ -186,7 +186,7 @@ fixup_config
 # Checking abi compliance relies on using the dwarf information in
 # The shared objects.  Thats only included in the DSO's if we build
 # with -g
-export EXTRA_CFLAGS="$EXTRA_CFLAGS -g"
+export EXTRA_CFLAGS="$EXTRA_CFLAGS -g -O0"
 export EXTRA_LDFLAGS="$EXTRA_LDFLAGS -g"
 
 # Now configure the build