-export-dynamic with .a files?

Alexandre Oliva aoliva@redhat.com
Thu Mar 20 19:56:00 GMT 2003


On Mar 19, 2003, Andrew Haley <aph@redhat.com> wrote:
> Erik Poupaert writes:

>> Is there a reason why -export-dynamic doesn't work with .a files?

> -E, --export-dynamic Export all dynamic symbols

> .a files have no dynamic symbols.

Err... Just like .o files :-) If they do get linked in, they become
dynamic symbols. But object files inside .a files, unlike .o files
explicitly listed in the command line, don't get linked in unless
they're actually referenced.
-- 
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /