1
1
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:
Rui Ueyama 2024-06-28 11:00:36 +09:00
parent a38be94064
commit 091395df33

View File

@ -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")