summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-12-16 10:31:12 +0000
committerMike Frysinger <vapier@gentoo.org>2006-12-16 10:31:12 +0000
commit11e1469dcfdaf6c23f43b5f07c20e509d69f4854 (patch)
treee383395d4af6ad43c1b07ac2aade179786f7a8cd /eclass/toolchain-funcs.eclass
parentEnable compiling with X but without opengl, thanks to aballier. (diff)
downloadhistorical-11e1469dcfdaf6c23f43b5f07c20e509d69f4854.tar.gz
historical-11e1469dcfdaf6c23f43b5f07c20e509d69f4854.tar.bz2
historical-11e1469dcfdaf6c23f43b5f07c20e509d69f4854.zip
allow gcc funcs to take an argument to pass down to tc-getCC #158239
Diffstat (limited to 'eclass/toolchain-funcs.eclass')
-rw-r--r--eclass/toolchain-funcs.eclass12
1 files changed, 6 insertions, 6 deletions
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 <toolchain@gentoo.org>
#
@@ -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 <major>.<minor>
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