Files
cpuinfo/soname.patch
Christian Goll c73e79d93c Accepting request 1247946 from home:jengelh:branches:science:machinelearning
- Update to snapshot b73ae6ce38d
- Ditch the build-time move of /usr/share/cpuinfo to
  /usr/share/cmake, as this breaks e.g. SVT-AV1 3.x.
- Rework soname.patch so the package actually follows SLPP.

OBS-URL: https://build.opensuse.org/request/show/1247946
OBS-URL: https://build.opensuse.org/package/show/science:machinelearning/cpuinfo?expand=0&rev=7
2025-02-25 18:46:15 +00:00

20 lines
749 B
Diff

From: Jan Engelhardt <jengelh@inai.de>
Date: 2025-02-23 21:57:59.617153408 +0100
Unversioned libraries are uncool; add an unambiguous suffix to it.
(To mimic libtool's -release, the build recipe needs to rename
libcpuinfo-suse.so back to libcpuinfo.so.)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4634a22..87178a9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -259,6 +259,7 @@ ELSEIF(CPUINFO_LIBRARY_TYPE STREQUAL "static")
ELSE()
MESSAGE(FATAL_ERROR "Unsupported library type ${CPUINFO_LIBRARY_TYPE}")
ENDIF()
+set_target_properties(cpuinfo PROPERTIES OUTPUT_NAME cpuinfo-suse SOVERSION 0)
ADD_LIBRARY(cpuinfo_internals STATIC ${CPUINFO_SRCS})
CPUINFO_TARGET_ENABLE_C99(cpuinfo)
CPUINFO_TARGET_ENABLE_C99(cpuinfo_internals)