http://bugs.winehq.org/show_bug.cgi?id=17474
--- Comment #3 from Alexandre Julliard julliard@winehq.org 2009-02-20 03:12:41 --- (In reply to comment #2)
Would it be possible to get -fvisibility=hidden used in Wine? I guess it shouldn't be too complex to wire up beside for the configure check, since Win32 already forces explicit declaration of exported symbols.
We don't declare exported symbols explicitly in Wine, so that would be quite a bit of work. And actually the right fix is to declare the private symbols hidden, like we do in a couple of places already.
I haven't looked at (or actually used) Wine in a while, but if it would be just a matter of wiring up the buildsystem I can see to help. Sincerely I'd be interested in getting this addressed in Wine for the only reason that it's a popular and visible project, and getting such a fix pushed here would help the argument on other projects as well.
I'm not sure Wine is a good example, the Wine libraries are not standard shared libraries, they are not meant to be linked against, and they use non-standard namespace rules.