B. Smedberg wrote:

Doug,

I have been trying to understand the dependent libs mechanism in the native component loader. I think I understand the code, but I don't really understand why it works the first time, i.e.:

The native component informs the native component loader about its dependencies during auto-registration (in nsGenericModule::RegisterSelf <http://lxr.mozilla.org/mozilla/source/xpcom/glue/nsGenericFactory.cpp#421>). However, for this to happen, the component must already be loaded. How does the native component loader resolve library dependencies the first time, during auto-registration?


For dependent library support to work, it is assumed that a compreg.dat file is shipped along with the binary that is using the GRE. So... registration of components using dependent libraries must have their LD_LIBRARY_PATH or equiv. set up properly prior to running regxpcom the first time.

I hope you don't mind, but I have cc'ed the newsgroup. More people should be in on this conversation.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to