http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52765
--- Comment #8 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-03-29 15:52:52 UTC --- For sure, anyway, at -O0 the library *is* exporting unwanted symbols. I'm not sure that at this time we can really support what you want.