File onnxruntime-soname.patch of Package onnxruntime
diff -rup onnxruntime-1.19.2.orig/cmake/onnxruntime.cmake onnxruntime-1.19.2.new/cmake/onnxruntime.cmake
--- onnxruntime-1.19.2.orig/cmake/onnxruntime.cmake 2024-08-30 18:02:31.000000000 -0400
+++ onnxruntime-1.19.2.new/cmake/onnxruntime.cmake 2024-10-01 15:44:55.649284867 -0400
@@ -241,14 +241,14 @@ if(NOT APPLE AND NOT WIN32)
set_target_properties(onnxruntime PROPERTIES
PUBLIC_HEADER "${ONNXRUNTIME_PUBLIC_HEADERS}"
VERSION ${ORT_VERSION}
- SOVERSION 1
+ SOVERSION ${ORT_VERSION}
FOLDER "ONNXRuntime")
else()
set_target_properties(onnxruntime PROPERTIES
PUBLIC_HEADER "${ONNXRUNTIME_PUBLIC_HEADERS}"
LINK_DEPENDS ${SYMBOL_FILE}
VERSION ${ORT_VERSION}
- SOVERSION 1
+ SOVERSION ${ORT_VERSION}
FOLDER "ONNXRuntime")
endif()
else()