Skip to content

qemu: fix static build by disabling PIE

Jeshan requested to merge (removed):jeshan-master-patch-48348 into master

I understood we want a static build for qemu but it is not correctly built as a static one. Example in docker: image

A possible fix which I've personally used was to also pass --disable-pie alongside --static

This was based on the reference in upstream configure script:

https://gitlab.com/qemu-project/qemu/-/blob/d90f154867ec0ec22fd719164b88716e8fd48672/configure#L2200-2222

Compare to the Ubuntu project's static build on my machine (installed by apt-get install -y qemu-user-static): image

Their build script:

https://git.launchpad.net/ubuntu/+source/qemu/tree/debian/rules?h=ubuntu/hirsute#n188

Merge request reports

Loading