[PATCH 15/94] sys-kernel/gnumach: replace -ggdb* with -g, not -g1

Sam James <[email protected]>
Newsgroups gmane.linux.gentoo.devel
Message-ID <402e984062153f34b197623b181fca8243ca1344.1774994290.git.sam@gentoo.org>
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 <[email protected]>
---
 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 f3071f9f2b94f..30a324eb5eab3 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 f3071f9f2b94f..30a324eb5eab3 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
-- 
2.53.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.