From 5aa03282f033768a95f48ad70d5f6dcf1f493b07 Mon Sep 17 00:00:00 2001 From: Wolfgang Müller Date: Sun, 16 May 2021 10:43:21 +0200 Subject: 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 --- group-base/env/debug | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'group-base') 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" -- cgit v1.2.3-2-gb3c3