libsm64 / libsm64

Mario 64 as a library for use in external game engines
Creative Commons Zero v1.0 Universal
638 stars 39 forks source link

Only export lib functions in linux builds #41

Closed Brawmario closed 1 year ago

Brawmario commented 1 year ago

Just like how Windows does by default, only export the library symbols on the Linux build. Technically raises the GCC requirements to at least version 4.

For reference, after this change the generated shared library ended up being over 100kb smaller and exports only 49 symbols as opposed to 993 (!) symbols.

jaburns commented 1 year ago

Nice!