On 06/29/2016 12:03 PM, Daniel P. Berrange wrote:
Debian handles this by having several packages 
- qemu-user - the dynamic linked qemu user binaries
- qemu-binfmt - binfmt rules registering the dynamic linked binaries
- qemu-user-static - the static linked qemu user binaries *and* binfmt
rules to register them. The static binaries all
have -static suffix on their name
Debian builds static libraries and puts them into their -dev packages.
Fedora does not do this systematically. Are all the static libraries
you need actually available in Fedora?
An alternative would be to bind-mount the real file system into the
chroot and run the native dynamic linker with a --library-path command
line argument that specifies the library directories in the bind mount.
(It's reasonable to specify --inhibit-cache as well.) This would need
some adjustments in the binfmt wrapper.