Skip to content

Commit

Permalink
Merge pull request #98 from phprus/glibc-less-2.17
Browse files Browse the repository at this point in the history
Link with -lrt (for glibc versions before 2.17)
  • Loading branch information
gulrak authored Feb 12, 2021
2 parents 77a8df0 + 402f462 commit 0d109a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/GhcHelper.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" AND (CMAKE_CXX_COMPILER_VERSION
target_link_libraries(${targetName} -lc++fs)
else()
target_compile_options(${targetName} PRIVATE "-stdlib=libc++")
target_link_libraries(${targetName} -stdlib=libc++ -lc++fs)
target_link_libraries(${targetName} -stdlib=libc++ -lc++fs $<$<PLATFORM_ID:Linux>:rt>)
endif()
else()
if(NOT APPLE)
Expand Down

0 comments on commit 0d109a7

Please sign in to comment.