mozcoreconf-v6: Disable elf-hack when debug cflags enabled

Closes: https://bugs.gentoo

Signed-off-by: Jory Pratt <anarchy@gentoo.org>
This commit is contained in:
Jory Pratt
2019-07-17 20:41:37 -05:00
parent 5a78008a50
commit cf29bfea14
+7 -1
View File
@@ -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