--- mariadb-10.6.16/cmake/dtrace.cmake.orig +++ mariadb-10.6.16/cmake/dtrace.cmake @@ -199,6 +199,6 @@ ) ADD_CUSTOM_TARGET(${target}_dtrace_all DEPENDS ${obj}) ADD_DEPENDENCIES(${target} ${target}_dtrace_all) - TARGET_LINK_LIBRARIES(${target} ${obj}) + TARGET_LINK_LIBRARIES(${target} PRIVATE ${obj}) ENDIF() ENDMACRO()