Shared library linking with external static libraries.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm having trouble figuring out how to do the following:

I have a fairly large project of an SDK that I need to compile as a shared
library for Linux. This SDK consists of 3 static libraries (home-made) and
uses several external static libraries (freetype, FTGL, and others).

The 3 home-made sub-libraries have been compiled with -fvisibility=hidden,
so their symbols don't get exported by the shared object. This works and I
am very happy with this.

I have two questions:
    - How can I tell gcc (used with "-shared") to not expose the externals
libraries's symbols, since they were compiled without -fvisibility=hidden ?
    - How can I dead-strip the shared object ?

Thanks for any help.

Florent.
-- 
View this message in context: http://old.nabble.com/Shared-library-linking-with-external-static-libraries.-tp29941925p29941925.html
Sent from the gcc - Help mailing list archive at Nabble.com.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux