Alain BARBET wrote:
>> Static libraries don't understand -export-dynamic, it doesn't
>> make any sense.  If you configure with --disable-shared
>> then you won't have any modules to dlopen, because
>> they will be static, and you would already have the resolved
>> symbols in your executable.

Ok. Take example in libtool doc:

"burger$ libtool gcc -module -o libhello.la foo.lo \
                 hello.lo -rpath /usr/local/lib -lm"
"If symbols from your executable are needed to satisfy unresolved 
references in a library you want to dlopen you will have to use the flag 
-export-dynamic. You should use -export-dynamic while linking the 
executable that calls dlopen:
burger$ libtool gcc -export-dynamic -o hell-dlopener main.o"

What I want do is:
burger$ libtool gcc -export-dynamic -o hell-dlopener main.o 
--whole-archive myneededlib.a --no-whole-archive

Because symbols needed for libhello.la are in mynneededlib.a, not in 
main.o, and gcc will not export these symbols without --whole-archive 
... and libtool give me:
gcc -export-dynamic -o hell-dlopener main.o -Wl,--export-dynamic 
--whole-archive --no-whole-archive myneededlib.a

Not what I want ... You understand ?


_______________________________________________
Libtool mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/libtool

Reply via email to