https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64998
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Yeah, you don't want multiple libasan runtimes in multiple shared libraries or shared library and executable, which is why -static-libasan links it only into the executable. You really should link -lasan dynamically ;).