[dpdk-dev] scripts: disable optimization for ABI validation

Message ID 1472224000-2288-1-git-send-email-ferruh.yigit@intel.com (mailing list archive)
State Accepted, archived
Delegated to: Thomas Monjalon
Headers

Commit Message

Ferruh Yigit Aug. 26, 2016, 3:06 p.m. UTC
  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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Thomas Monjalon Sept. 15, 2016, 2:23 p.m. UTC | #1
2016-08-26 16:06, Ferruh Yigit:
> 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>

Applied, thanks
  

Patch

diff --git a/scripts/validate-abi.sh b/scripts/validate-abi.sh
index feda6c8..52e4e7a 100755
--- a/scripts/validate-abi.sh
+++ b/scripts/validate-abi.sh
@@ -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