diff options
author | Tavis Ormandy <taviso@gentoo.org> | 2003-05-26 21:17:02 +0000 |
---|---|---|
committer | Tavis Ormandy <taviso@gentoo.org> | 2003-05-26 21:17:02 +0000 |
commit | c2cf226e626dbb820fa7501cbd08b135e1b2fe66 (patch) | |
tree | ddfc45d591a7728805a011ea7be764d36f593b0d /eclass/ccc.eclass | |
parent | Added DB4 fix in eclass. (diff) | |
download | historical-c2cf226e626dbb820fa7501cbd08b135e1b2fe66.tar.gz historical-c2cf226e626dbb820fa7501cbd08b135e1b2fe66.tar.bz2 historical-c2cf226e626dbb820fa7501cbd08b135e1b2fe66.zip |
oops, ccc may have full path specified - is-ccc should use basename.
Diffstat (limited to 'eclass/ccc.eclass')
-rw-r--r-- | eclass/ccc.eclass | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/eclass/ccc.eclass b/eclass/ccc.eclass index da6dba4d276c..489c399684c4 100644 --- a/eclass/ccc.eclass +++ b/eclass/ccc.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/ccc.eclass,v 1.5 2003/05/26 21:07:00 taviso Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/ccc.eclass,v 1.6 2003/05/26 21:17:02 taviso Exp $ # # Authors: Tavis Ormandy <taviso@gentoo.org> # Aron Griffis <agriffis@gentoo.org> @@ -22,7 +22,6 @@ DEPEND="${DEPEND} # define this to make this eclass noisy. #DEBUG_CCC_ECLASS=1 - # #### hide-restrict-arr #### # Scan for and replace __restrict_arr with a ccc @@ -151,13 +150,13 @@ replace-cxx-hardcode() is-ccc() { # return true if ccc is being used. - [ "${ARCH}:${CC}" == "alpha:ccc" ] + [ "${ARCH}:`basename ${CC}`" == "alpha:ccc" ] } is-cxx() { # return true if cxx is being used - [ "${ARCH}:${CXX}" == "alpha:cxx" ] + [ "${ARCH}:`basename ${CXX}`" == "alpha:cxx" ] } replace-ccc-g() |