Chris and I talked at some length on IRC, and came up with a possible solution to this problem. Keeping the dependent libs code as it is; when NS_InitXPCOM2() needs to do autoregistration, instead of doing it directly, it sets up the LD_LIBRARY_PATH environment properly and calls "regxpcom" as a child process. This breaks the catch-22 and probably breaks the need for the startup shell scripts as well.
Of course, win32 does not have this issue and I would like to suggest that we #ifdef the dependent-libs code so that it is only built on the platforms with *nixlike soloaders that don't dynamically respond to the environment.
--BDS
_______________________________________________ Mozilla-xpcom mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-xpcom
