Message ID | 1610732311-3385-1-git-send-email-ian.stokes@intel.com |
---|---|
State | Accepted |
Headers | show |
Series | [ovs-dev,v1,branch-2.13,1/2] acinclude: Strip out -march provided by DPDK. | expand |
diff --git a/acinclude.m4 b/acinclude.m4 index 12fd6c4a5..9922c69b0 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -431,6 +431,9 @@ AC_DEFUN([OVS_CHECK_DPDK], [ if test "$DPDK_AUTO_DISCOVER" = "false"; then OVS_LDFLAGS="$OVS_LDFLAGS -L$DPDK_LIB_DIR" fi + # Force in pkg-config since this could override user-specified options. + # It's enough to have -mssse3 to build with DPDK headers. + DPDK_INCLUDE=$(echo "$DPDK_INCLUDE" | sed 's/-march=[[^ ]]*//g') OVS_CFLAGS="$OVS_CFLAGS $DPDK_INCLUDE" OVS_ENABLE_OPTION([-mssse3])
DPDK flags may include -march. Forcing -march could be considered too heavy a requirement when users compile OVS from source and could override user provided options. Resolve this by stripping -march from provided DPDK flags. Signed-off-by: Ian Stokes <ian.stokes@intel.com> --- acinclude.m4 | 3 +++ 1 file changed, 3 insertions(+)