[CMake] Bug 25059 - CMake libllvm.so.$MAJOR.$MINOR shared object name not compatible...
authorChris Bieneman <beanz@apple.com>
Wed, 4 Nov 2015 23:11:12 +0000 (23:11 +0000)
committerChris Bieneman <beanz@apple.com>
Wed, 4 Nov 2015 23:11:12 +0000 (23:11 +0000)
commit61dbca10ea813ea3af447cc7ac2556a5e81211f9
tree046c1fa349b90aae07c21bd0a122ffe1658eda1b
parentdc486f17195c8ff05804f034ddc8988fa9052eab
[CMake] Bug 25059 - CMake libllvm.so.$MAJOR.$MINOR shared object name not compatible with ldconfig

Summary:
This change makes the CMake build system generate libraries for Linux and Darwin matching the makefile build system.

Linux libraries follow the pattern lib${name}.${MAJOR}.${MINOR}.so so that ldconfig won't pick it up incorrectly.

Darwin libraries are not versioned.

Note: On linux the non-versioned symlink is generated at install-time not build time. I plan to fix that eventually, but I expect that is good enough for the purposes of fixing this bug.

Reviewers: loladiro, tstellarAMD

Subscribers: axw, llvm-commits

Differential Revision: http://reviews.llvm.org/D13841

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252093 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/AddLLVM.cmake
tools/llvm-shlib/CMakeLists.txt