diff options
author | Jory Pratt <anarchy@gentoo.org> | 2019-07-17 20:41:37 -0500 |
---|---|---|
committer | Jory Pratt <anarchy@gentoo.org> | 2019-07-17 20:41:37 -0500 |
commit | cf29bfea148f8a2fe960c495bd1887eab42e6599 (patch) | |
tree | a0a2e581b0a86e3e8570b7586ad0e1cf704f7eb2 /eclass/mozcoreconf-v6.eclass | |
parent | perl-core/Time-Local: Add ~m68k-mint ~riscv from dev-lang/perl (diff) | |
download | gentoo-cf29bfea148f8a2fe960c495bd1887eab42e6599.tar.gz gentoo-cf29bfea148f8a2fe960c495bd1887eab42e6599.tar.bz2 gentoo-cf29bfea148f8a2fe960c495bd1887eab42e6599.zip |
mozcoreconf-v6: Disable elf-hack when debug cflags enabled
Closes: https://bugs.gentoo
Signed-off-by: Jory Pratt <anarchy@gentoo.org>
Diffstat (limited to 'eclass/mozcoreconf-v6.eclass')
-rw-r--r-- | eclass/mozcoreconf-v6.eclass | 8 |
1 files changed, 7 insertions, 1 deletions
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 |