Static linking error: passt.c: undefined reference to g_subprocess_* and other Glib functions

I am building statically linked QEMU for a while using my own Docker and scripts (based on the Zig language one): https://codeberg.org/xvilka/qemu-static

Until at least 8.0 it was building fine, but since "passt" network backend refuses to link properly:

.../bin/ld: libsystem.a.p/net_passt.c.o: in function `net_passt_start_daemon`:
.../bin/ld: passt.c:(.text+0x25c): undefined reference to `g_object_unref`

and many other errors like that. To reproduce just clone that repository and run ./build - you will see errors.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information