diff options
author | 2012-01-08 03:38:03 +0000 | |
---|---|---|
committer | 2012-01-08 03:38:03 +0000 | |
commit | 1f7832d4a05077a14c797779d57fdb5ac434f4b4 (patch) | |
tree | cb34ff2437ab9d438aad3d057d95825f44787637 /eclass | |
parent | Fixed version of genkernel out, so that users do not trigger the /usr mount c... (diff) | |
download | historical-1f7832d4a05077a14c797779d57fdb5ac434f4b4.tar.gz historical-1f7832d4a05077a14c797779d57fdb5ac434f4b4.tar.bz2 historical-1f7832d4a05077a14c797779d57fdb5ac434f4b4.zip |
respect CPPFLAGS, and mark cc/ld as local
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/qmail.eclass | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/eclass/qmail.eclass b/eclass/qmail.eclass index 4c0242ea91ec..3e382498698c 100644 --- a/eclass/qmail.eclass +++ b/eclass/qmail.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/qmail.eclass,v 1.5 2011/11/24 00:04:13 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/qmail.eclass,v 1.6 2012/01/08 03:38:03 vapier Exp $ # @ECLASS: qmail.eclass # @MAINTAINER: @@ -99,10 +99,10 @@ dosupervise() { # because a user supplied patch might apply changes to these files, too. # See bug #165981. qmail_set_cc() { - cc=$(head -n 1 ./conf-cc | sed -e "s#^g\?cc\s\+\(-O2\)\?#$(tc-getCC) #") - ld=$(head -n 1 ./conf-ld | sed -e "s#^g\?cc\s\+\(-s\)\?#$(tc-getCC) #") + local cc=$(head -n 1 ./conf-cc | sed -e "s#^g\?cc\s\+\(-O2\)\?#$(tc-getCC) #") + local ld=$(head -n 1 ./conf-ld | sed -e "s#^g\?cc\s\+\(-s\)\?#$(tc-getCC) #") - echo "${cc} ${CFLAGS}" > ./conf-cc || die 'Patching conf-cc failed.' + echo "${cc} ${CFLAGS} ${CPPFLAGS}" > ./conf-cc || die 'Patching conf-cc failed.' echo "${ld} ${LDFLAGS}" > ./conf-ld || die 'Patching conf-ld failed.' } |