"Dan Kegel" dank@kegel.com writes:
The scenario I'm imagining is: Lots of people want to use a particular windows dll in their Linux apps. Joe Developer writes a nice wrapper library using winelib to hide the fact that win32 is involved at all. Fred Developer uses Joe's library in his app. Currently, Fred has to switch his app around to be run via the wine preloader. With the scheme Mike was thinking of in http://bugzilla.kernel.org/show_bug.cgi?id=2255 Fred wouldn't have to do that; he'd only have to link in a static library (named, say, wine-reserve-win32-vma.a), and then link in Joe's library any old way. That sounds a lot easier to me. Did I miss something?
I'm not sure you can do the ELF magic with a static library, but even if you could there's a lot more to the initial setup than the preloader; that's why winelib apps are shared libraries, so that we can do all the work that needs to be done before they get loaded.