Index: lib/ExecutionEngine/CMakeLists.txt =================================================================== --- lib/ExecutionEngine/CMakeLists.txt +++ lib/ExecutionEngine/CMakeLists.txt @@ -14,6 +14,10 @@ intrinsics_gen ) +if(BUILD_SHARED_LIBS) + target_link_libraries(LLVMExecutionEngine PUBLIC LLVMRuntimeDyld) +endif() + add_subdirectory(Interpreter) add_subdirectory(MCJIT) add_subdirectory(Orc)