summaryrefslogtreecommitdiff
path: root/google-cpu_features-create_soname.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-01-14 07:53:57 +0000
committerCoprDistGit <infra@openeuler.org>2025-01-14 07:53:57 +0000
commit1bf1e59cec68cc5f0a8e366f598cd5d5f84684b1 (patch)
tree3dae33ac499baea2a34bb85439155b9fc9718521 /google-cpu_features-create_soname.patch
parent2d9df3009a7d61447075899721e148b89cc25cf8 (diff)
automatic import of google-cpu_featuresopeneuler24.09
Diffstat (limited to 'google-cpu_features-create_soname.patch')
-rw-r--r--google-cpu_features-create_soname.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/google-cpu_features-create_soname.patch b/google-cpu_features-create_soname.patch
new file mode 100644
index 0000000..556ca78
--- /dev/null
+++ b/google-cpu_features-create_soname.patch
@@ -0,0 +1,13 @@
+From https://src.fedoraproject.org/rpms/google-cpu_features/blob/rawhide/f/google-cpu_features-create_soname.patch
+
+--- a/CMakeLists.orig.txt 2021-02-26 22:26:45.246246073 +0100
++++ b/CMakeLists.txt 2021-02-26 22:26:09.153781594 +0100
+@@ -129,7 +129,7 @@
+ list(APPEND CPU_FEATURES_SRCS $<TARGET_OBJECTS:unix_based_hardware_detection>)
+ endif()
+ add_library(cpu_features ${CPU_FEATURES_HDRS} ${CPU_FEATURES_SRCS})
+-set_target_properties(cpu_features PROPERTIES PUBLIC_HEADER "${CPU_FEATURES_HDRS}")
++set_target_properties(cpu_features PROPERTIES PUBLIC_HEADER "${CPU_FEATURES_HDRS}" SOVERSION "${CPUFEATURES_VERSION_MAJOR}" VERSION "${CPUFEATURES_VERSION}")
+ setup_include_and_definitions(cpu_features)
+ target_link_libraries(cpu_features PUBLIC ${CMAKE_DL_LIBS})
+ target_include_directories(cpu_features