40 lines
1.0 KiB
Diff
40 lines
1.0 KiB
Diff
From 37300aa54b8256dd2edfd504942eb2bd20823647 Mon Sep 17 00:00:00 2001
|
|
From: leveldb Team <no-reply@google.com>
|
|
Date: Mon, 1 Apr 2019 08:59:17 -0700
|
|
Subject: [PATCH] Restore soname versioning with CMake build
|
|
|
|
Before:
|
|
|
|
$ readelf -d build/libleveldb.so | grep soname
|
|
0x000000000000000e (SONAME) Library soname: [libleveldb.so]
|
|
|
|
After:
|
|
$ readelf -d build/libleveldb.so | grep soname
|
|
0x000000000000000e (SONAME) Library soname: [libleveldb.so.1]
|
|
|
|
This matches the soname from v1.20.
|
|
|
|
PiperOrigin-RevId: 241334113
|
|
---
|
|
CMakeLists.txt | 4 ++++
|
|
1 file changed, 4 insertions(+)
|
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index e471a2a..ceb5dd9 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -233,6 +233,10 @@ if(BUILD_SHARED_LIBS)
|
|
# Used by include/export.h.
|
|
LEVELDB_SHARED_LIBRARY
|
|
)
|
|
+ set_target_properties(leveldb
|
|
+ PROPERTIES VERSION ${PROJECT_VERSION})
|
|
+ set_target_properties(leveldb
|
|
+ PROPERTIES SOVERSION 1)
|
|
endif(BUILD_SHARED_LIBS)
|
|
|
|
if(HAVE_CLANG_THREAD_SAFETY)
|
|
--
|
|
2.21.0
|
|
|