commit: cf29bfea148f8a2fe960c495bd1887eab42e6599 Author: Jory Pratt <anarchy <AT> gentoo <DOT> org> AuthorDate: Thu Jul 18 01:41:37 2019 +0000 Commit: Jory Pratt <anarchy <AT> gentoo <DOT> org> CommitDate: Thu Jul 18 01:41:37 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf29bfea
mozcoreconf-v6: Disable elf-hack when debug cflags enabled Closes: https://bugs.gentoo Signed-off-by: Jory Pratt <anarchy <AT> gentoo.org> eclass/mozcoreconf-v6.eclass | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/eclass/mozcoreconf-v6.eclass b/eclass/mozcoreconf-v6.eclass index b844a3591c8..074b2da9f6a 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
