Gentoo Archives: gentoo-commits

From: "Mike Frysinger (vapier)" <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: flag-o-matic.eclass
Date: Tue, 30 Oct 2012 20:20:55
Message-Id: 20121030202037.8DBF721600@flycatcher.gentoo.org
1 vapier 12/10/30 20:20:37
2
3 Modified: flag-o-matic.eclass
4 Log:
5 strip-flags: do not add -O2 if user has -O #440306 by Denis M
6
7 Revision Changes Path
8 1.178 eclass/flag-o-matic.eclass
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/flag-o-matic.eclass?rev=1.178&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/flag-o-matic.eclass?rev=1.178&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/flag-o-matic.eclass?r1=1.177&r2=1.178
13
14 Index: flag-o-matic.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v
17 retrieving revision 1.177
18 retrieving revision 1.178
19 diff -u -r1.177 -r1.178
20 --- flag-o-matic.eclass 23 Jun 2012 22:21:50 -0000 1.177
21 +++ flag-o-matic.eclass 30 Oct 2012 20:20:37 -0000 1.178
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2012 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.177 2012/06/23 22:21:50 vapier Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.178 2012/10/30 20:20:37 vapier Exp $
27
28 # @ECLASS: flag-o-matic.eclass
29 # @MAINTAINER:
30 @@ -370,7 +370,7 @@
31 done
32
33 # In case we filtered out all optimization flags fallback to -O2
34 - if _is_flagq ${var} "-O*" && ! _is_flagq new "-O*" ; then
35 + if _is_flagq ${var} "-O*" && ! (_is_flagq new "-O*" || _is_flagq new -O) ; then
36 new+=( -O2 )
37 fi