1 Mar 2009 02:51
how to NOT export symbols in statically linked 3rd party shared libs
Chris Miller <chris.miller <at> bowbridge.net>
2009-03-01 01:51:42 GMT
2009-03-01 01:51:42 GMT
Hi all, I have the following problem: I have created a shared lib and want to make sure I only export those symbols that should be accessible from external. I manage to do that fine with "#pragma GCC visibility" switches for all my "own" symbols. However my lib also statically links OpenSSL and the linker exports all symbols in libssl too. That is a problem because it creates a symbol collision - so how can I keep the linker from also exporting the symbols of libs (*.a) statically linked to my shared lib? I appreciate any comment/hint! Thanks a bunch! Chris
Compiling the
executable -fPIC ensures that there are no copy relocs created.
Andrew.
RSS Feed