scripts: permit passing extra flags to ABI validator
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 24 Sep 2015 07:50:57 +0000 (10:50 +0300)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 3 Dec 2015 19:39:49 +0000 (20:39 +0100)
Its sometimes necessary to disable warnings etc to get an older
version of code to build.

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
scripts/validate-abi.sh

index 4476433..b9c9989 100755 (executable)
@@ -164,8 +164,8 @@ sed -i -e"$ a\CONFIG_RTE_LIBRTE_KNI=n" config/defconfig_$TARGET
 # 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=-g
-export EXTRA_LDFLAGS=-g
+export EXTRA_CFLAGS="$EXTRA_CFLAGS -g"
+export EXTRA_LDFLAGS="$EXTRA_LDFLAGS -g"
 
 # Now configure the build
 log "INFO" "Configuring DPDK $TAG1"