openSUSE / libzypp

ZYpp Package Management library
http://doc.opensuse.org/projects/libzypp/HEAD/
Other
116 stars 82 forks source link

Add ZYPP_API for exported functions and switch to visibility=hidden #545

Closed dirkmueller closed 5 months ago

dirkmueller commented 5 months ago

Together with a switch to O2 this reduces the resulting binary size by about 10%. The most simple approach has been taken so far by only declaring export visibility on classes instead of individual public functions where possible. Similarly ZYPP_TESTS is added as export declaration for things that are (seemingly) only used by tests.