Skip to content

Commit fff32f5

Browse files
authored
Merge pull request #2415 from compnerd/the-path-challenge
build: correct the `DT_SONAME`
2 parents 0074e07 + e593c02 commit fff32f5

File tree

1 file changed

+1
-1
lines changed

1 file 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)

0 commit comments

Comments
 (0)