commit:     8639a828c1328dc3d8c874d2af7941caa8898398
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Mar 16 16:06:22 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Mar 16 16:10:32 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8639a828

sys-kernel/gnumach: replace -ggdb* with -g, not -g1

Copy what ghc does, as it doesn't downgrade -g* to -g1 rather than -g.

Still not really happy w/ this but it's better than before.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-kernel/gnumach/gnumach-1.8_p20260224.ebuild | 3 ++-
 sys-kernel/gnumach/gnumach-9999.ebuild          | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/sys-kernel/gnumach/gnumach-1.8_p20260224.ebuild 
b/sys-kernel/gnumach/gnumach-1.8_p20260224.ebuild
index f3071f9f2b94..30a324eb5eab 100644
--- a/sys-kernel/gnumach/gnumach-1.8_p20260224.ebuild
+++ b/sys-kernel/gnumach/gnumach-1.8_p20260224.ebuild
@@ -60,7 +60,8 @@ src_configure() {
        # LTO confuses one of the assemble steps
        filter-lto
        # -g3 confuses MIG which relies on preprocessed input
-       replace-flags '-g*' '-g1'
+       replace-flags -ggdb[3-9] -ggdb2
+       replace-flags -g3 -g
        # LD gets invoked directly. raw-ldflags would work here except
        # that it breaks configure which uses the compiler driver
        unset LDFLAGS

diff --git a/sys-kernel/gnumach/gnumach-9999.ebuild 
b/sys-kernel/gnumach/gnumach-9999.ebuild
index f3071f9f2b94..30a324eb5eab 100644
--- a/sys-kernel/gnumach/gnumach-9999.ebuild
+++ b/sys-kernel/gnumach/gnumach-9999.ebuild
@@ -60,7 +60,8 @@ src_configure() {
        # LTO confuses one of the assemble steps
        filter-lto
        # -g3 confuses MIG which relies on preprocessed input
-       replace-flags '-g*' '-g1'
+       replace-flags -ggdb[3-9] -ggdb2
+       replace-flags -g3 -g
        # LD gets invoked directly. raw-ldflags would work here except
        # that it breaks configure which uses the compiler driver
        unset LDFLAGS

Reply via email to