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:

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

Their build script:

Merge request reports