[libvirt] Fedora MinGW - need for *.def files
Daniel P. Berrange
berrange at redhat.com
Mon Nov 16 11:34:51 UTC 2009
On Mon, Nov 16, 2009 at 11:23:15AM +0000, Richard W.M. Jones wrote:
> [This is just a FYI ...]
>
> Upstream binutils or gcc changed the default way that symbols are
> exported for cross-compiled (Fedora MinGW) DLLs. Previously all
> symbols were exported. Now they are only exported if they are
> explicitly listed in a *.def file.
>
> There are two ways that libvirt could be changed to do the right
> thing here.
> Or create a *.def file. It looks like:
>
> LIBRARY libvirt.dll
> DESCRIPTION "libvirt foo blah"
> EXPORTS
> <<list of symbol names, one per line>>
>
> http://msdn.microsoft.com/en-us/library/d91k01sh%28VS.80%29.aspx
> http://msdn.microsoft.com/en-us/library/28d6s79h%28VS.80%29.aspx
>
> The LIBRARY and DESCRIPTION lines are optional.
This method sounds appealing to me - we could likely auto-generate
this file from the master src/libvirt_public.syms file we already
have for Linux/Solaris
Daniel
--
|: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
More information about the libvir-list
mailing list