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: Mon, 30 Sep 2013 06:40:04
Message-Id: 20130930063956.4EED82004C@flycatcher.gentoo.org
1 vapier 13/09/30 06:39:56
2
3 Modified: flag-o-matic.eclass
4 Log:
5 append-*flags: revert to old behavior where we always append the flags specified rather than doing testing on them; it is not feasible to handle flags that have spaces in them #417047
6
7 Revision Changes Path
8 1.189 eclass/flag-o-matic.eclass
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/flag-o-matic.eclass?rev=1.189&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/flag-o-matic.eclass?rev=1.189&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/flag-o-matic.eclass?r1=1.188&r2=1.189
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.188
18 retrieving revision 1.189
19 diff -u -r1.188 -r1.189
20 --- flag-o-matic.eclass 5 Sep 2013 05:28:01 -0000 1.188
21 +++ flag-o-matic.eclass 30 Sep 2013 06:39:56 -0000 1.189
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2013 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.188 2013/09/05 05:28:01 vapier Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/flag-o-matic.eclass,v 1.189 2013/09/30 06:39:56 vapier Exp $
27
28 # @ECLASS: flag-o-matic.eclass
29 # @MAINTAINER:
30 @@ -144,38 +144,53 @@
31 # Add extra <flags> to the current CPPFLAGS.
32 append-cppflags() {
33 [[ $# -eq 0 ]] && return 0
34 - export CPPFLAGS="${CPPFLAGS} $*"
35 + export CPPFLAGS+=" $*"
36 return 0
37 }
38
39 # @FUNCTION: append-cflags
40 # @USAGE: <flags>
41 # @DESCRIPTION:
42 -# Add extra <flags> to the current CFLAGS.
43 +# Add extra <flags> to the current CFLAGS. If a flag might not be supported
44 +# with different compilers (or versions), then use test-flags-CC like so:
45 +# @CODE
46 +# append-cflags $(test-flags-CC -funky-flag)
47 +# @CODE
48 append-cflags() {
49 [[ $# -eq 0 ]] && return 0
50 - export CFLAGS=$(test-flags-CC ${CFLAGS} "$@")
51 + # Do not do automatic flag testing ourselves. #417047
52 + export CFLAGS+=" $*"
53 return 0
54 }
55
56 # @FUNCTION: append-cxxflags
57 # @USAGE: <flags>
58 # @DESCRIPTION:
59 -# Add extra <flags> to the current CXXFLAGS.
60 +# Add extra <flags> to the current CXXFLAGS. If a flag might not be supported
61 +# with different compilers (or versions), then use test-flags-CXX like so:
62 +# @CODE
63 +# append-cxxflags $(test-flags-CXX -funky-flag)
64 +# @CODE
65 append-cxxflags() {
66 [[ $# -eq 0 ]] && return 0
67 - export CXXFLAGS=$(test-flags-CXX ${CXXFLAGS} "$@")
68 + # Do not do automatic flag testing ourselves. #417047
69 + export CXXFLAGS+=" $*"
70 return 0
71 }
72
73 # @FUNCTION: append-fflags
74 # @USAGE: <flags>
75 # @DESCRIPTION:
76 -# Add extra <flags> to the current {F,FC}FLAGS.
77 +# Add extra <flags> to the current {F,FC}FLAGS. If a flag might not be supported
78 +# with different compilers (or versions), then use test-flags-F77 like so:
79 +# @CODE
80 +# append-fflags $(test-flags-F77 -funky-flag)
81 +# @CODE
82 append-fflags() {
83 [[ $# -eq 0 ]] && return 0
84 - export FFLAGS=$(test-flags-F77 ${FFLAGS} "$@")
85 - export FCFLAGS=$(test-flags-FC ${FCFLAGS} "$@")
86 + # Do not do automatic flag testing ourselves. #417047
87 + export FFLAGS+=" $*"
88 + export FCFLAGS+=" $*"
89 return 0
90 }