Skip to content

Commit

Permalink
We need to link laf-base with pthread on Linux
Browse files Browse the repository at this point in the history
It looks like just by chance the pthread was specified in the linked
phase, but in some cases pthread is not specified in the correct order
for gcc linker command line.
  • Loading branch information
dacap committed Oct 7, 2021
1 parent 71e9363 commit c9bb18b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions base/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ else()
target_compile_definitions(laf-base PUBLIC LAF_MACOS)
else()
target_compile_definitions(laf-base PUBLIC LAF_LINUX)
target_link_libraries(laf-base pthread)
endif()

find_library(DL_LIBRARY NAMES dl)
Expand Down

0 comments on commit c9bb18b

Please sign in to comment.