http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55374
--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> 2012-11-18 01:18:07 UTC --- -Bstatic -lasan -Bdynamic must be placed before -Bstatic -lstdc++ -Bdynamic.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55374
--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> 2012-11-18 01:18:07 UTC --- -Bstatic -lasan -Bdynamic must be placed before -Bstatic -lstdc++ -Bdynamic.