From 00dd9e8519b10839fb2bd66fad8ee72e3e461b87 Mon Sep 17 00:00:00 2001 From: Seth Howell Date: Tue, 17 Sep 2019 10:58:31 -0700 Subject: [PATCH] configure: add -march-native to dpdk build check. Some older versions of gcc fail with errors when -march=native is not supplied to the build cmd for checking DPDK rte_vhost support. Change-Id: I88e12f6823b2a143dc8406c7c01041c00c25011c Signed-off-by: Seth Howell Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/468636 Tested-by: SPDK CI Jenkins Reviewed-by: Jim Harris Reviewed-by: Paul Luse Reviewed-by: Ben Walker --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index a670ea02d..bf02e88e2 100755 --- a/configure +++ b/configure @@ -371,7 +371,7 @@ $rootdir/scripts/detect_cc.sh --cc="$CC" --cxx="$CXX" --lto="${CONFIG[LTO]}" --l CC=$(cat $rootdir/mk/cc.mk | grep "DEFAULT_CC=" | cut -d "=" -f 2) CC_TYPE=$(cat $rootdir/mk/cc.mk | grep "CC_TYPE=" | cut -d "=" -f 2) -BUILD_CMD=($CC -o /dev/null -x c $CPPFLAGS $CFLAGS $LDFLAGS) +BUILD_CMD=($CC -o /dev/null -x c $CPPFLAGS $CFLAGS $LDFLAGS -march=native) # Detect architecture and force no ISA-L if non-x86 archtecture if [[ "${CONFIG[ISAL]}" = "y" ]]; then