Skip to content

Commit 4a398bf

Browse files
committed
Merge branch 'release_70' of github.com:llvm-mirror/llvm into release_70
2 parents fb0030c + dd3329a commit 4a398bf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cmake/modules/AddLLVM.cmake

+4-2
Original file line numberDiff line numberDiff line change
@@ -498,8 +498,10 @@ 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}
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}
503505
VERSION ${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH}${LLVM_VERSION_SUFFIX})
504506
endif()
505507
endif()

0 commit comments

Comments
 (0)