Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • aports aports
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 749
    • Issues 749
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 332
    • Merge requests 332
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • alpine
  • aportsaports
  • Merge requests
  • !21214

The source project of this merge request has been removed.
Closed
Created May 07, 2021 by Jeshan@jeshan
  • Report abuse
Report abuse

qemu: fix static build by disabling PIE

  • Overview 4
  • Changes 1

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

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: jeshan-master-patch-48348