https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61408
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I'd say there is no point in doing that. Just build the compiler-rt library and link it in statically (-static-libasan) with gcc instead of the gcc one.