• D
    rpc: don't link in second copy of RPC code to libvirtd & lockd plugin · c3b24e70
    Daniel P. Berrangé 提交于
    The libvirt_driver_remote.la static library is linked into the
    libvirt.so dynamic library, providing both the generic RPC layer code
    and the remote protocol client driver. The libvirtd daemon the itself
    links to libvirt_driver_remote.la, in order to get access to the generic
    RPC layer code and the XDR functions for the remote driver. This means
    we get multiple copies of the same code in libvirtd, one direct and one
    indirect via libvirt.so. The same mistake affects the lockd plugin.
    
    The libvirtd daemon should instead just link aganist the generic RPC
    layer code that's in libvirt.so. This is easily doable if we add exports
    for the few symbols we've previously missed, and wildcard export xdr_*
    to expose the auto-generated XDR marshallers.
    Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
    c3b24e70
Makefile.am 101.5 KB