1
1
mirror of https://github.com/rui314/mold.git synced 2024-11-09 16:05:58 +03:00

Set LIBDIR for mold-wrapper.so

Fixes https://github.com/rui314/mold/issues/697
This commit is contained in:
Rui Ueyama 2022-09-14 14:28:17 +08:00
parent fdcb3c2efe
commit 8e2e6d8603

View File

@ -16,6 +16,8 @@ endif()
add_executable(mold)
target_compile_features(mold PRIVATE cxx_std_20)
target_compile_definitions(mold PRIVATE
"LIBDIR=\"${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}\"")
target_link_libraries(mold PRIVATE ${CMAKE_DL_LIBS})
if(NOT "${CMAKE_CXX_COMPILER_FRONTEND_VARIANT}" STREQUAL "MSVC")