Skip to content

Commit 0dec444

Browse files
compnerdrokhinip
authored andcommitted
build: correct the DT_SONAME
When ninja is invoked from a subdirectory it will convert the path to a relative path, and that resulted in incorrect test results. This ensures that we get the correct soname. Signed-off-by: Kim Topley <[email protected]>
1 parent 3add582 commit 0dec444

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

cmake/modules/SwiftSupport.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ function(add_swift_target target)
136136
if(CMAKE_SYSTEM_NAME STREQUAL Windows OR CMAKE_SYSTEM_NAME STREQUAL Darwin)
137137
set(emit_library -emit-library)
138138
else()
139-
set(emit_library -emit-library -Xlinker -soname -Xlinker ${AST_OUTPUT})
139+
set(emit_library -emit-library -Xlinker -soname -Xlinker ${CMAKE_SHARED_LIBRARY_PREFIX}${target}${CMAKE_SHARED_LIBRARY_SUFFIX})
140140
endif()
141141
endif()
142142
if(NOT AST_LIBRARY OR library_kind STREQUAL SHARED)
File renamed without changes.

0 commit comments

Comments
 (0)