#1112220 ipxe: drop Debian's custom CFLAGS for building ROMs

Package:
ipxe
Source:
ipxe
Submitter:
Jonas Jelten
Date:
2026-03-10 16:55:02 UTC
Severity:
normal
Tags:
#1112220#5
Date:
2025-08-27 14:57:13 UTC
From:
To:
Dear Maintainer,

when packaging iPXE for Ubuntu, the build failed since Ubuntu enables
LTO by default, and this was added to the CFLAGS due to Debian's patch.

In the upstream bug report, developers requested that distributions
shouldn't change iPXE's CFLAGS at all since their compilation target is
boot ROMs.

Could Debian (& then Ubuntu) remove the CFLAGS adjustment as requested by upstream?

https://github.com/ipxe/ipxe/issues/1515
https://github.com/ipxe/ipxe/pull/1521

Ubuntu bug: https://bugs.launchpad.net/ubuntu/+source/ipxe/+bug/2121439

Cheers
  -- JJ

#1112220#10
Date:
2026-03-10 16:53:12 UTC
From:
To:
Hi,

In release 2.0.0, I filtered the added CFLAGS to only
include warning related options and removes other options which
affects the behavior of the compiler. I wonder if this change
can satisfy your request.

Cheers,

Miao Wang