Skip to content

Commit 1cf679d

Browse files
author
trixirt
authored
cmake : make libwhisper.so position independent (#1792)
This is similar to how libllama.so is built. Signed-off-by: Tom Rix <[email protected]>
1 parent 41026c1 commit 1cf679d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,7 @@ else()
505505
endif()
506506

507507
if (BUILD_SHARED_LIBS)
508+
set_target_properties(${TARGET} PROPERTIES POSITION_INDEPENDENT_CODE ON)
508509
target_link_libraries(${TARGET} PUBLIC
509510
${CMAKE_DL_LIBS}
510511
)

0 commit comments

Comments
 (0)