Is there a platform independent way of telling ld (via gcc) to include
all symbols of an archive regardless if they are referenced or not, when
building a shared library.

gcc -shared -o libmine.so -Wl,--whole-archive libstuff.a -Wl,--none-whole-archive

This is of course does work the same way on Sun, Digital, or HP.  One way
would be to create a file that references every symbol you want in the library.
But I don't want to have to scour the library for this info.  Any ideas.

Thanks for any help.  jlm

-- 
To unsubscribe:
mail -s unsubscribe [EMAIL PROTECTED] < /dev/null

Reply via email to