[PATCH] D94941: Add minor version to libclang.so and libclang-cpp.so SONAME
Tom Stellard via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 20 14:07:45 PST 2021
tstellar updated this revision to Diff 318003.
tstellar added a comment.
Fix shared object symlinks.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D94941/new/
https://reviews.llvm.org/D94941
Files:
clang/CMakeLists.txt
clang/tools/clang-shlib/CMakeLists.txt
clang/tools/libclang/CMakeLists.txt
Index: clang/tools/libclang/CMakeLists.txt
===================================================================
--- clang/tools/libclang/CMakeLists.txt
+++ clang/tools/libclang/CMakeLists.txt
@@ -150,6 +150,7 @@
else()
set_target_properties(libclang
PROPERTIES
+ SOVERSION ${LIBCLANG_LIBRARY_VERSION}
VERSION ${LIBCLANG_LIBRARY_VERSION}
DEFINE_SYMBOL _CINDEX_LIB_)
# FIXME: _CINDEX_LIB_ affects dllexport/dllimport on Win32.
Index: clang/tools/clang-shlib/CMakeLists.txt
===================================================================
--- clang/tools/clang-shlib/CMakeLists.txt
+++ clang/tools/clang-shlib/CMakeLists.txt
@@ -48,3 +48,8 @@
${_OBJECTS}
LINK_LIBS
${_DEPS})
+
+ set_target_properties(clang-cpp
+ PROPERTIES
+ VERSION ${LIBCLANG_LIBRARY_VERSION}
+ SOVERSION ${LIBCLANG_LIBRARY_VERSION})
Index: clang/CMakeLists.txt
===================================================================
--- clang/CMakeLists.txt
+++ clang/CMakeLists.txt
@@ -509,7 +509,7 @@
"${CLANG_VERSION_MAJOR}" CACHE STRING
"Major version number that will be appended to the clang executable name")
set(LIBCLANG_LIBRARY_VERSION
- "${CLANG_VERSION_MAJOR}" CACHE STRING
+ "${CLANG_VERSION_MAJOR}.${CLANG_VERSION_MINOR}" CACHE STRING
"Major version number that will be appended to the libclang library")
mark_as_advanced(CLANG_EXECUTABLE_VERSION LIBCLANG_LIBRARY_VERSION)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94941.318003.patch
Type: text/x-patch
Size: 1490 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210120/c3ff1548/attachment.bin>
More information about the cfe-commits
mailing list