Exporting Symbols for C++ libs

Kilian Krause kilian at debian.org
Sun Jul 3 11:02:25 UTC 2011


Hi guys,

regarding our (Debian pkg-voip) attempt to track the ABI of our beloved C++
libs I guess there are some great news.  The Debian KDE packaging team has put
great efforts into making sure the symbols checker now handles C++ libs
correctly (huge thanks to Modestas Vainius). He recommends using CXXFLAGS
including both -fvisibility=hidden and -fvisibility-inlines-hidden to ensure
that only symbols that are supposed to be visible are actually exposed. More
detailled information can be found at: http://gcc.gnu.org/wiki/Visibility

So this wouldn't only make PTLib/OPAL/H323plus load/run faster, but it would
also mean that we can ensure a stable ABI is maintained in our packages of
same name.

My questions now would be how well prepared you consider the libs in trunk
(and their latest releases) as my first test using these flags with PTLib
2.10 have not been quite successful (which may or may not be me being to
ignorant on how to do this correctly).  Now what do you think of perusing
this feature of GCC to only export the "official" ABI. Makes sense?

Thanks for your help!

-- 
Best regards,
Kilian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-voip-maintainers/attachments/20110703/4a0b2b32/attachment.pgp>


More information about the Pkg-voip-maintainers mailing list