What has changed since my posting: news://news.mozilla.org:119/[EMAIL PROTECTED]
And Chris's follow up: news://news.mozilla.org:119/[EMAIL PROTECTED]
Doug Turner
Benjamin Smedberg wrote:
Doug, I have come up with a way to package the GRE on linux (at least for testing purposes), and I am still running up against the problem of loading dependent libraries. It's a catch-22: you don't know what the dependent libs are until you load the component, but you can't load it until you've loaded the dependent libs. I have come up with several possible solutions, and wanted to run them by you for discussion:
1) keep the current dependent lib mechanism (notify during auto-registration); before autoregistration, all of the GRE libraries should be pre-loaded (path.to.gre/*.so or something else?).
2) revamp the current dependencies-at-autoregistration mechanism. Instead, keep a text file next to each component (libcomponent.deps) with a list of dependent libs.
3) don't use the c++ glue to find a GRE; instead, find a compatible GRE in the run-mozilla.sh script. This may sound hacky, but I think it would work pretty well. It would probably require awk or something; I'm not sure whether it would be onerous to require awk at runtime.
I personally like #2... let me know what/whether any of these sounds good to you.
--BDS
_______________________________________________ Mozilla-xpcom mailing list [EMAIL PROTECTED] http://mail.mozilla.org/listinfo/mozilla-xpcom
