Wrapper for Winelib
mh at codeweavers.com
Sun Dec 5 12:20:44 CST 2004
It's not that easy, that approach doesn't take C++ static constructors
into account, nor the address space manipulation that takes effect.
It is possible to allow people to start winelib apps like "./foo" but
hardly a big deal. You need to have a program which does:
int main(int argc, char *argv)
self = readlink("/proc/self/exe");
exec("wine " + self, argc, argv);
"main()" may already be taken, so you might need to intercept stuff at the
ELF bootstrap level.
More information about the wine-devel