Description: Fix the soname of the shared libraries
Author: Sebastien Jodogne <s.jodogne@orthanc-labs.com>
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: OrthancPostgreSQL-3.0/PostgreSQL/CMakeLists.txt
===================================================================
--- OrthancPostgreSQL-3.0.orig/PostgreSQL/CMakeLists.txt
+++ OrthancPostgreSQL-3.0/PostgreSQL/CMakeLists.txt
@@ -84,17 +84,15 @@ add_definitions(
   -DORTHANC_PLUGIN_VERSION="${ORTHANC_PLUGIN_VERSION}"
   )
 
-set_target_properties(OrthancPostgreSQLStorage PROPERTIES 
-  VERSION ${ORTHANC_PLUGIN_VERSION} 
-  SOVERSION ${ORTHANC_PLUGIN_VERSION}
+set_target_properties(OrthancPostgreSQLStorage PROPERTIES
   COMPILE_FLAGS -DORTHANC_ENABLE_LOGGING_PLUGIN=1
-  )
+  LINK_FLAGS "-Wl,-soname,libOrthancPostgreSQLStorage.so.${DEB_VERSION}"
+  NO_SONAME ON)
 
-set_target_properties(OrthancPostgreSQLIndex PROPERTIES 
-  VERSION ${ORTHANC_PLUGIN_VERSION} 
-  SOVERSION ${ORTHANC_PLUGIN_VERSION}
+set_target_properties(OrthancPostgreSQLIndex PROPERTIES
   COMPILE_FLAGS -DORTHANC_ENABLE_LOGGING_PLUGIN=1
-  )
+  LINK_FLAGS "-Wl,-soname,libOrthancPostgreSQLIndex.so.${DEB_VERSION}"
+  NO_SONAME ON)
 
 install(
   TARGETS OrthancPostgreSQLIndex OrthancPostgreSQLStorage
