Description: <short summary of the patch>
 TODO: Put a short summary on the line above and replace this paragraph
 with a longer explanation of this change. Complete the meta-information
 with other relevant fields (see below for details). To make it easier, the
 information below has been extracted from the changelog. Adjust it or drop
 it.
 .
 pmemkv (0.8-1) experimental; urgency=medium
 .
   * Initial release (Closes: #931240)
Author: Adam Borowski <kilobyte@angband.pl>
Bug-Debian: https://bugs.debian.org/931240

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: https://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: 2019-06-29

--- pmemkv-0.8.orig/CMakeLists.txt
+++ pmemkv-0.8/CMakeLists.txt
@@ -259,6 +259,7 @@ else()
 endif()
 
 add_library(pmemkv SHARED ${SOURCE_FILES})
+set_target_properties(pmemkv PROPERTIES SOVERSION 0)
 target_link_libraries(pmemkv PRIVATE
 	-Wl,--version-script=${CMAKE_SOURCE_DIR}/src/libpmemkv.map)
 
--- pmemkv-0.8.orig/tests/CMakeLists.txt
+++ pmemkv-0.8/tests/CMakeLists.txt
@@ -147,12 +147,12 @@ if(ENGINE_TREE3)
 	list(APPEND TEST_FILES engines-experimental/tree3_test.cc)
 endif()
 
-include(gtest)
+#include(gtest)
 include(get_tests.cmake)
 
 add_executable(pmemkv_test ${TEST_FILES})
 
-target_link_libraries(pmemkv_test pmemkv libgtest ${CMAKE_DL_LIBS})
+target_link_libraries(pmemkv_test pmemkv libgtest.a -pthread ${CMAKE_DL_LIBS})
 if(ENGINE_CACHING)
 	target_link_libraries(pmemkv_test memcached)
 endif()
