dpif-netdev/avx512: avoid compiling avx512 code if binutils check fails
This commit avoids compiling and linking of avx512 code into the
vswitch_la library if the binutils check fails. This avoids compiling
code into OVS that will not be executed due to binutils issue.
@@ -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 = \
