#1058664 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:
#1058664#5
Date:
2023-12-14 09:05:37 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, so this patch doesn't
have any effect for unstable's build flags.