Skip to content

Commit

Permalink
enable linking against luv.so module
Browse files Browse the repository at this point in the history
  • Loading branch information
gloaming committed Aug 1, 2019
1 parent 41bb68b commit 4f06dd4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/nvim/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,12 @@ if(WIN32)
list(APPEND NVIM_LINK_LIBRARIES ${WINPTY_LIBRARIES})
endif()

get_filename_component(LIBLUV_PATH ${LIBLUV_LIBRARIES} PATH)
get_filename_component(LIBLUV_NAME ${LIBLUV_LIBRARIES} NAME)
if(LIBLUV_NAME STREQUAL luv.so)
set(LIBLUV_LIBRARIES "-L ${LIBLUV_PATH} -l:${LIBLUV_NAME} -Wl,--rpath ${LIBLUV_PATH}")
endif()

# Put these last on the link line, since multiple things may depend on them.
list(APPEND NVIM_LINK_LIBRARIES
${LIBLUV_LIBRARIES}
Expand Down

0 comments on commit 4f06dd4

Please sign in to comment.