Skip to content

Commit 0382905

Browse files
committed
Revert "[cmake] Update SOVERSION for the new versioning scheme"
This reverts commit r292255. git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_70@353247 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 57567de commit 0382905

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

cmake/modules/AddLLVM.cmake

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -498,9 +498,11 @@ function(llvm_add_library name)
498498
if(UNIX AND NOT APPLE AND NOT ARG_SONAME)
499499
set_target_properties(${name}
500500
PROPERTIES
501-
# Since 4.0.0, the ABI version is indicated by the major version
502-
SOVERSION ${LLVM_VERSION_MAJOR}
503-
VERSION ${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH}${LLVM_VERSION_SUFFIX})
501+
# Concatenate the version numbers since ldconfig expects exactly
502+
# one component indicating the ABI version, while LLVM uses
503+
# major+minor for that.
504+
SOVERSION ${LLVM_VERSION_MAJOR}${LLVM_VERSION_MINOR}
505+
VERSION ${LLVM_VERSION_MAJOR}${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH}${LLVM_VERSION_SUFFIX})
504506
endif()
505507
endif()
506508

0 commit comments

Comments
 (0)