https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109674
--- Comment #5 from Martin Liška <marxin at gcc dot gnu.org> --- The solution is probably very similar to libasan library where also __lsan symbols are used and where we link against ../lsan/.libs/libsanitizer_lsan.a.