Uber-Dynamic Linkery
Uber-Dynamic Linkery
- Subject: Uber-Dynamic Linkery
- From: Jerry Krinock <email@hidden>
- Date: Thu, 30 May 2013 21:25:53 -0700
My Firefox extension contains a dynamic library that I build in Xcode. It links to a function, NS_GetServiceManager(), which, until Firefox version 22, is defined in libxpcom.dylib, which is one of the dozen or so libraries that Mozilla ships in Firefox. But starting in Firefox 22, the definition of NS_GetServiceManager() got moved to a different library, XUL.
So, if I build *my* dylib linked to libxpcom.dylib, it works OK in Firefox 21 but fails to load in Firefox 22. If I build it linked to XUL, it works OK in Firefox 22, but in Firefox 21, Firefox crashes when NS_GetServiceManager() is invoked.
Is there any kind of linking trickery I could use to build a dylib which will work in both new and old Firefox versions?
Thanks!
Jerry Krinock
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden