http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55354
--- Comment #7 from H.J. Lu <hjl.tools at gmail dot com> 2012-11-17 20:35:57 UTC --- (In reply to comment #6) > Answering my own question: we can get static linking with > -Wl,-Bstatic -lasan -Wl,-Bdynamic -ldl -lpthread > The -static-libasan option was added by http://gcc.gnu.org/ml/gcc-cvs/2012-11/msg00536.html