Re: how to build libvirt-go-module statically

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Thank you so much for the info! 

Best Regards,
Jiatong Shen

On Wed, Sep 6, 2023 at 4:37 PM Daniel P. Berrangé <berrange@xxxxxxxxxx> wrote:
On Wed, Sep 06, 2023 at 03:25:48PM +0800, Jiatong Shen wrote:
> Hello community,
>    I want to know how to build libvirt-go-module statically? My go version
> is 1.17 and libvirt-go-module version is v1.9007.0. Thank you very much for
> the help.

There is not any way to build fully statically, because itself
does not support static builds. The default build of libvirt Go bindings
will dynamically link to If you set the 'libvirt_dlopen'
build tag when compiling, then instead of directly dynamically linking,
the libvirt Go binding will dynamically load at runtime.
The latter approach means you DO NOT need libvirt installed in your
development or build environment, but you DO need installed
in your production deployment.

With regards,
|:      -o- :|
|:         -o-   :|
|:    -o- :|


Best Regards,

Jiatong Shen

[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux