diff options
author | Wolfgang Müller | 2021-05-16 10:43:21 +0200 |
---|---|---|
committer | Wolfgang Müller | 2021-05-16 10:51:53 +0200 |
commit | 5aa03282f033768a95f48ad70d5f6dcf1f493b07 (patch) | |
tree | 5707940e434a47cb4bc7ef9648802db97e12915f /group-base/env/debug | |
parent | 299c0221a1607f763525671ab9f7f4fef299f57a (diff) | |
download | portage-roles-5aa03282f033768a95f48ad70d5f6dcf1f493b07.tar.gz |
group-base: Force GCC to use DWARF 4
GCC 11 defaults to the DWARF 5 format for debugging information [1].
Unfortunately, dev-util/debugedit does not yet support this, rendering
'installsources' ineffective; no sources are saved. Hence, force the use
of DWARF 4 until debugedit supports DWARF 5.
Note that upstream rpm merged support for it in [2], but there has not
yet been a release including that patch series.
[1] https://gcc.gnu.org/gcc-11/changes.html
[2] https://github.com/rpm-software-management/rpm/pull/1537
See also: https://bugs.gentoo.org/show_bug.cgi?id=768444
Diffstat (limited to 'group-base/env/debug')
-rw-r--r-- | group-base/env/debug | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/group-base/env/debug b/group-base/env/debug index 6e6c795..ab73427 100644 --- a/group-base/env/debug +++ b/group-base/env/debug @@ -1,3 +1,4 @@ -CFLAGS="${CFLAGS} -ggdb" -CXXFLAGS="${CXXFLAGS} -ggdb" +# remove -gdwarf-4 once debugedit supports DWARF 5 +CFLAGS="${CFLAGS} -ggdb -gdwarf-4" +CXXFLAGS="${CXXFLAGS} -ggdb -gdwarf-4" FEATURES="${FEATURES} -nostrip compressdebug installsources splitdebug" |