mirror of
https://github.com/ggerganov/whisper.cpp.git
synced 2024-12-18 20:27:53 +00:00
cmake : make libwhisper.so position independent (#1792)
This is similar to how libllama.so is built. Signed-off-by: Tom Rix <trix@redhat.com>
This commit is contained in:
parent
41026c1e4b
commit
1cf679dec4
@ -505,6 +505,7 @@ else()
|
||||
endif()
|
||||
|
||||
if (BUILD_SHARED_LIBS)
|
||||
set_target_properties(${TARGET} PROPERTIES POSITION_INDEPENDENT_CODE ON)
|
||||
target_link_libraries(${TARGET} PUBLIC
|
||||
${CMAKE_DL_LIBS}
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user