The library is purely internal and linked into the main libopenvswitch
during the build. It should not be marked for installation. Moving
it from 'lib' to 'noinst', so 'make install' doesn't install it to the
system. With that we also don't need to exclude it from the RPM files.
Fixes: 352b6c7116cd ("dpif-lookup: add avx512 gather implementation.")
Fixes: 9ecaa5cb71b6 ("rhel: openvswitch-fedora.spec.in: Fix installed but not
packaged.")
Signed-off-by: Ilya Maximets <[email protected]>
---
lib/automake.mk | 2 +-
rhel/openvswitch-fedora.spec.in | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/automake.mk b/lib/automake.mk
index 9634bed7b..c6e988906 100644
--- a/lib/automake.mk
+++ b/lib/automake.mk
@@ -26,7 +26,7 @@ if HAVE_LD_AVX512_GOOD
# 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
# statically linked into vswitchd even if vswitchd is a shared build.
-lib_LTLIBRARIES += lib/libopenvswitchavx512.la
+noinst_LTLIBRARIES += lib/libopenvswitchavx512.la
lib_libopenvswitch_la_LIBADD += lib/libopenvswitchavx512.la
lib_libopenvswitchavx512_la_CFLAGS = \
-mavx512f \
diff --git a/rhel/openvswitch-fedora.spec.in b/rhel/openvswitch-fedora.spec.in
index 38fbee727..6e24ab425 100644
--- a/rhel/openvswitch-fedora.spec.in
+++ b/rhel/openvswitch-fedora.spec.in
@@ -434,7 +434,6 @@ fi
%{_includedir}/openvswitch/*
%{_includedir}/openflow/*
%exclude %{_libdir}/*.la
-%exclude %{_libdir}/*.a
%if 0%{?rhel} > 7 || (0%{?fedora} > 28 && 0%{?fedora} < 41)
%files -n network-scripts-%{name}
--
2.52.0
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev