On Thu, Jul 18, 2019 at 04:04:13PM +0400, Marc-André Lureau wrote: > Our module system does not support Windows, because it relies on > resolving symbols from the main executable. > > If there is enough interest in supporting modules on Windows, we could > generate an import library for the executable and link with it: > https://stackoverflow.com/questions/15454968/dll-plugin-that-uses-functions-defined-in-the-main-executable > > However, there is a small chicken egg problem, since the executable > link and exports extra symbols needed by the library...
The "solution" to that would presumably be to put everything into a library, and the executable merely becomes trivial main() that calls a "runme" function in the library. It is kind of ugly though as we would need a separate library for each system emulator executable. Just ignoring modules on Windows looks like the prudent solution. > > Signed-off-by: Marc-André Lureau <marcandre.lur...@redhat.com> > --- > configure | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) Reviewed-by: Daniel P. Berrangé <berra...@redhat.com> Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|