https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68650
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- The question is how is the binary linked. If it uses -static-libasan or not. If it links dynamically against -lasan, libasan.so.* should have DT_NEEDED and this shouldn't be an issue. If it is linking static libasan.a in, then we have libsanitizer.spec for that to handle it, which has: *link_libasan: -lrt -lrt -lpthread -ldl -lm Unless the binary is linked with -nostdlib or something similar, then of course it would be responsible for handling everything itself.