浏览代码

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
main
leveldb Team 5 年前
committed by Chris Mumford
父节点
当前提交
37300aa54b
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. +4
    -0
      CMakeLists.txt

+ 4
- 0
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)

正在加载...
取消
保存