Skip to content

Commit

Permalink
acinclude: Strip out -march provided by DPDK.
Browse files Browse the repository at this point in the history
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>
Acked-by: Ilya Maximets <i.maximets@ovn.org>
  • Loading branch information
istokes committed Jan 20, 2021
1 parent 66fc41b commit 63f2aa2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions acinclude.m4
Expand Up @@ -431,6 +431,10 @@ AC_DEFUN([OVS_CHECK_DPDK], [
if test "$DPDK_AUTO_DISCOVER" = "false"; then
OVS_LDFLAGS="$OVS_LDFLAGS -L$DPDK_LIB_DIR"
fi
# Stripping out possible instruction set specific configuration that DPDK
# forces 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])
Expand Down

0 comments on commit 63f2aa2

Please sign in to comment.