mirror of
https://github.com/rui314/mold.git
synced 2024-10-04 00:31:41 +03:00
Link with -ldl
for dlopen()
Fixes https://github.com/rui314/mold/issues/1293
This commit is contained in:
parent
a38be94064
commit
091395df33
@ -61,6 +61,8 @@ target_compile_features(mold PRIVATE cxx_std_20)
|
||||
|
||||
if(MINGW)
|
||||
target_link_libraries(mold PRIVATE dl)
|
||||
else()
|
||||
target_link_libraries(mold PRIVATE ${CMAKE_DL_LIBS})
|
||||
endif()
|
||||
|
||||
if(NOT "${CMAKE_CXX_COMPILER_FRONTEND_VARIANT}" STREQUAL "MSVC")
|
||||
|
Loading…
Reference in New Issue
Block a user