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: qmail.eclass
Date: Sun, 08 Jan 2012 03:38:14
Message-Id: 20120108033803.87EAF20034@flycatcher.gentoo.org
1 vapier 12/01/08 03:38:03
2
3 Modified: qmail.eclass
4 Log:
5 respect CPPFLAGS, and mark cc/ld as local
6
7 Revision Changes Path
8 1.6 eclass/qmail.eclass
9
10 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/qmail.eclass?rev=1.6&view=markup
11 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/qmail.eclass?rev=1.6&content-type=text/plain
12 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/qmail.eclass?r1=1.5&r2=1.6
13
14 Index: qmail.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/qmail.eclass,v
17 retrieving revision 1.5
18 retrieving revision 1.6
19 diff -u -r1.5 -r1.6
20 --- qmail.eclass 24 Nov 2011 00:04:13 -0000 1.5
21 +++ qmail.eclass 8 Jan 2012 03:38:03 -0000 1.6
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2011 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/qmail.eclass,v 1.5 2011/11/24 00:04:13 vapier Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/qmail.eclass,v 1.6 2012/01/08 03:38:03 vapier Exp $
27
28 # @ECLASS: qmail.eclass
29 # @MAINTAINER:
30 @@ -99,10 +99,10 @@
31 # because a user supplied patch might apply changes to these files, too.
32 # See bug #165981.
33 qmail_set_cc() {
34 - cc=$(head -n 1 ./conf-cc | sed -e "s#^g\?cc\s\+\(-O2\)\?#$(tc-getCC) #")
35 - ld=$(head -n 1 ./conf-ld | sed -e "s#^g\?cc\s\+\(-s\)\?#$(tc-getCC) #")
36 + local cc=$(head -n 1 ./conf-cc | sed -e "s#^g\?cc\s\+\(-O2\)\?#$(tc-getCC) #")
37 + local ld=$(head -n 1 ./conf-ld | sed -e "s#^g\?cc\s\+\(-s\)\?#$(tc-getCC) #")
38
39 - echo "${cc} ${CFLAGS}" > ./conf-cc || die 'Patching conf-cc failed.'
40 + echo "${cc} ${CFLAGS} ${CPPFLAGS}" > ./conf-cc || die 'Patching conf-cc failed.'
41 echo "${ld} ${LDFLAGS}" > ./conf-ld || die 'Patching conf-ld failed.'
42 }