diff mbox series

[ovs-dev,1/2] configure: fix binutils check not disabling avx512 compilation

Message ID 20200727111402.14786-1-harry.van.haaren@intel.com
State Superseded
Headers show
Series [ovs-dev,1/2] configure: fix binutils check not disabling avx512 compilation | expand

Commit Message

Van Haaren, Harry July 27, 2020, 11:14 a.m. UTC
This commit avoids compiling and linking of avx512 code into the
vswitch_la library if the binutils check fails.

Signed-off-by: Harry van Haaren <harry.van.haaren@intel.com>

---
 lib/automake.mk | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/lib/automake.mk b/lib/automake.mk
index 920c958e3..218dc7313 100644
--- a/lib/automake.mk
+++ b/lib/automake.mk
@@ -22,6 +22,7 @@  lib_libopenvswitch_la_LDFLAGS = \
         $(AM_LDFLAGS)
 
 if HAVE_AVX512F
+if HAVE_LD_AVX512_GOOD
 # Build library of avx512 code with CPU ISA CFLAGS enabled. This allows the
 # compiler to use the ISA features required for the ISA optimized code-paths.
 # Use LDFLAGS to compile only static library of this code, as it should be
@@ -39,6 +40,7 @@  lib_libopenvswitchavx512_la_SOURCES = \
 lib_libopenvswitchavx512_la_LDFLAGS = \
 	-static
 endif
+endif
 
 # Build core vswitch libraries as before
 lib_libopenvswitch_la_SOURCES = \