From: Mike Frysinger Date: Sat, 16 Dec 2006 10:31:12 +0000 (+0000) Subject: allow gcc funcs to take an argument to pass down to tc-getCC #158239 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=11e1469dcfdaf6c23f43b5f07c20e509d69f4854;p=gentoo.git allow gcc funcs to take an argument to pass down to tc-getCC #158239 --- diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass index 05f44b677626..baf0a570e58f 100644 --- a/eclass/toolchain-funcs.eclass +++ b/eclass/toolchain-funcs.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.62 2006/09/24 12:23:22 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.63 2006/12/16 10:31:12 vapier Exp $ # # Author: Toolchain Ninjas # @@ -180,23 +180,23 @@ tc-endian() { # Returns the version as by `$CC -dumpversion` gcc-fullversion() { - echo "$($(tc-getCC) -dumpversion)" + $(tc-getCC "$@") -dumpversion } # Returns the version, but only the . gcc-version() { - echo "$(gcc-fullversion | cut -f1,2 -d.)" + gcc-fullversion "$@" | cut -f1,2 -d. } # Returns the Major version gcc-major-version() { - echo "$(gcc-version | cut -f1 -d.)" + gcc-version "$@" | cut -f1 -d. } # Returns the Minor version gcc-minor-version() { - echo "$(gcc-version | cut -f2 -d.)" + gcc-version "$@" | cut -f2 -d. } # Returns the Micro version gcc-micro-version() { - echo "$(gcc-fullversion | cut -f3 -d. | cut -f1 -d-)" + gcc-fullversion "$@" | cut -f3 -d. | cut -f1 -d- } # Returns requested gcc specs directive