Skip to content

Commit ea20c1e

Browse files
committed
Revert "[cmake] Update SOVERSION for the new versioning scheme"
This reverts commit r292255. llvm-svn: 353247
1 parent f7211fd commit ea20c1e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

llvm/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)