@@ -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 = \
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(+)