#1064476 dpkg-buildflags: add support for building with frame pointers enabled

Package:
dpkg-dev
Source:
dpkg-dev
Submitter:
Matthias Klose
Date:
2024-08-07 09:15:06 UTC
Severity:
normal
Tags:
#1064476#5
Date:
2024-02-22 21:36:02 UTC
From:
To:
Please add support to enable to build with frame-pointer turned on. The
compilers in unstable default to -fomit-framepointer, this turns on
-fno-omit-framepointer plus an architecture specific option.

To enable it, use

    DEB_BUILD_MAINT_OPTIONS="... qa=+framepointer"

The chosen area might not be ideal, it could also be added to the
optimize area, however it is a "negative" optimization.

Currently the default is not changed in Debian.

#1064476#10
Date:
2024-03-17 14:46:28 UTC
From:
To:
I would even love to have finally a debian again which can be used to
debug and profile production ready binaries (at least on amd64). See
also

* https://www.brendangregg.com/blog/2024-03-17/the-return-of-the-frame-pointers.html
* https://ubuntu.com/blog/ubuntu-performance-engineering-with-frame-pointers-by-default
* https://fedoraproject.org/wiki/Changes/fno-omit-frame-pointer