library = shared
both_libraries = shared and static (needed by qemu)

--- libslirp-v4.2.0/meson.build	2020-03-17 10:07:35.000000000 +0000
+++ libslirp-v4.2.0/meson.build	2020-03-24 20:41:57.030331048 +0000
@@ -100,7 +100,7 @@ configure_file(
   configuration : conf
 )
 
-lib = library('slirp', sources,
+lib = both_libraries('slirp', sources,
   version : lt_version,
   c_args : cargs,
   link_args : vflag,