[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Linker failures trying to build static qemu-user binary
From: |
John Paul Adrian Glaubitz |
Subject: |
Re: Linker failures trying to build static qemu-user binary |
Date: |
Thu, 09 Feb 2023 15:25:24 +0100 |
User-agent: |
Evolution 3.46.3 |
On Thu, 2023-02-09 at 14:23 +0000, Peter Maydell wrote:
> > So, just include "-ldl" in LD_FLAGS?
>
> If this is necessary, then pkg-config should tell us to do it :-)
>
> But in the usual situation that you put the statically linked
> QEMU binary into a chroot, the dlopen() that libdw is going to
> try to do won't work anyway...
FWIW, passing --extra-ldflags="-ldl" fixes the issue for me.
Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer
`. `' Physicist
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913