From: Jory Pratt Date: Thu, 18 Jul 2019 01:41:37 +0000 (-0500) Subject: mozcoreconf-v6: Disable elf-hack when debug cflags enabled X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=cf29bfea148f8a2fe960c495bd1887eab42e6599;p=gentoo.git mozcoreconf-v6: Disable elf-hack when debug cflags enabled Closes: https://bugs.gentoo Signed-off-by: Jory Pratt --- diff --git a/eclass/mozcoreconf-v6.eclass b/eclass/mozcoreconf-v6.eclass index b844a3591c8a..074b2da9f6a6 100644 --- a/eclass/mozcoreconf-v6.eclass +++ b/eclass/mozcoreconf-v6.eclass @@ -196,7 +196,13 @@ mozconfig_init() { fi # Strip optimization so it does not end up in compile string - filter-flags '-O* -ggdb3' + filter-flags '-O*' + + filter-flags '-O*' + + if is-flagq '-g*' ; then + mozconfig_annotate 'elf-hack broken with -g* flags' --disable-elf-hack + fi # Strip over-aggressive CFLAGS use custom-cflags || strip-flags