LaurentGomila/SFML — Issue #111: Make SFML use ELF visibility
Author: Fanael
Created: 2011-10-12 14:15:21+00:00
State: open

SFML currently doesn't use [ELF visibility](http://gcc.gnu.org/wiki/Visibility). Follow the link for why it's good.

Making the library use the feature is dead simple, as it boils down to defining `SFML_API` as `__attribute__((__visibility__("default")))` on Linux and FreeBSD systems that have GCC >= 4.0.0 and compiling and linking everything with `-fvisibility=hidden` there.

No issues are expected, as Windows' dllimport/dllexport mechanism is quite similar and SFML works on Windows.