[PATCH] D94941: Add minor version to libclang.so and libclang-cpp.so SONAME

Josh Stone via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 20 13:59:42 PST 2021


cuviper added inline comments.


================
Comment at: clang/tools/clang-shlib/CMakeLists.txt:54
+      PROPERTIES
+      SOVERSION ${LIBCLANG_LIBRARY_VERSION})
----------------
tstellar wrote:
> cuviper wrote:
> > I think you also need `VERSION` here, or else it symlinks back to `.so.11`.
> I think add_clang_library is setting VERSION.  This is what I get when I build:
> 
> lib/libclang-cpp.so -> libclang-cpp.so.11.1
> lib/libclang.so -> libclang.so.11.1
> 
I see those links, but also `lib/libclang-cpp.so.11.1 -> libclang-cpp.so.11`, with the latter being the real file. If I add `VERSION` explicitly, that goes away.
(I had to delete `lib/libclang*.so*` before rebuilding too.)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D94941/new/

https://reviews.llvm.org/D94941



More information about the cfe-commits mailing list