From e1ea70a91c34a58e4f636084b6e6b48a7faa4c3f Mon Sep 17 00:00:00 2001 From: Ian Stakenvicius Date: Mon, 25 Jul 2016 14:50:27 -0400 Subject: mozcoreconf-v4.eclass: allow -O4 when custom-optimization flag is set End-users want to experiment with clang and -O4, so let them. Bug: http://bugs.gentoo.org/462488 --- eclass/mozcoreconf-v4.eclass | 2 ++ 1 file changed, 2 insertions(+) (limited to 'eclass/mozcoreconf-v4.eclass') diff --git a/eclass/mozcoreconf-v4.eclass b/eclass/mozcoreconf-v4.eclass index 3a43905ff321..b411326cd3d6 100644 --- a/eclass/mozcoreconf-v4.eclass +++ b/eclass/mozcoreconf-v4.eclass @@ -167,6 +167,8 @@ mozconfig_init() { mozconfig_annotate "from CFLAGS" --enable-optimize=-O0 elif [[ ${ARCH} == ppc ]] && has_version '>=sys-libs/glibc-2.8'; then mozconfig_annotate "more than -O1 segfaults on ppc with glibc-2.8" --enable-optimize=-O1 + elif is-flag -O4; then + mozconfig_annotate "from CFLAGS" --enable-optimize=-O4 elif is-flag -O3; then mozconfig_annotate "from CFLAGS" --enable-optimize=-O3 elif is-flag -O1; then -- cgit v1.2.3-65-gdbad