commit | 84361923047f867561efc0184a4af9c66c8ba852 | [log] [tgz] |
---|---|---|
author | Biswapriyo Nath <nathbappai@gmail.com> | Sat Jun 01 14:25:28 2024 +0000 |
committer | Biswapriyo Nath <nathbappai@gmail.com> | Sat Jun 01 14:27:26 2024 +0000 |
tree | 47097417822eb7cc59c3ea48a126ceb38b30129e | |
parent | 6ea2c4f95922a64d21190d9ad163e3bbde37a836 [diff] |
windows: allow static linking with LIBSLIRP_STATIC macro When the macro is defined it will help to link with libslirp statically. Otherwise, dllimport attribute is added with function symbols and linker errors are shown as following for static linking. undefined reference to `__imp_slirp_input' undefined reference to `__imp_slirp_cleanup' undefined reference to `__imp_slirp_remove_hostfwd' etc.
libslirp is a user-mode networking library used by virtual machines, containers or various tools.
A C compiler, meson and glib2 development libraries.
(see also .gitlab-ci.yml DEPS variable for the list of dependencies on Fedora)
You may build and install the shared library with meson:
meson build ninja -C build install
And configure QEMU with --enable-slirp=system to link against it.
(QEMU may build with the submodule static library using --enable-slirp=git)
Unfortunately, there are no automated tests available.
You may run QEMU -net user
linked with your development version.
Feel free to open issues on the project issues page.
You may clone the gitlab project and create a merge request.
Contributing with gitlab allows gitlab workflow, tracking issues, running CI etc.
Alternatively, you may send patches to slirp@lists.freedesktop.org mailing list.
We intend to use libtool's versioning for the shared libraries and use SemVer for project versions.
For the versions available, see the tags on this repository.
See the COPYRIGHT file for details.