http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59063
--- Comment #10 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to Yury Gribov from comment #9) > (In reply to Jakub Jelinek from comment #8) > > No. Just add it to STATIC_LIBASAN_LIBS and make sure libasan is linked > > against librt. > > Hm, I was under impression that these only get activated when user has > specified -static-libasan on cmdline... Sure. But for dynamically linked libasan.so you just add it to libasan_la_LDFLAGS and it will DTRT.