Skip to content

Commit

Permalink
Merge pull request #2799 from QiJune/fix_dyload_link
Browse files Browse the repository at this point in the history
fix dynload link error: undefined reference dlsym
  • Loading branch information
gangliao committed Jul 11, 2017
2 parents 71d196c + 8e4d043 commit 67bbcbb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmake/generic.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR})
if(NOT APPLE)
find_package(Threads REQUIRED)
link_libraries(${CMAKE_THREAD_LIBS_INIT})
set(CMAKE_CXX_LINK_EXECUTABLE "${CMAKE_CXX_LINK_EXECUTABLE} -ldl")
endif(NOT APPLE)

function(merge_static_libs TARGET_NAME)
Expand Down

0 comments on commit 67bbcbb

Please sign in to comment.