Considering the public API is all C, we can just filter out all C++ mangled symbols, which will avoid exporting symbols in some corner cases such as gcc bugs on specific architectures, etc. For instance, http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38643 prevents webkitgtk to build without exporting too many symbols on armel.
Created attachment 29124 [details] patch
Comment on attachment 29124 [details] patch I agree.
Landed in r42232. Thanks!