TOOLCHAIN-FUNCS.ECLASS(5)

NAME
toolchain-funcs - functions to get commonly needed info about the toolchain (binutils/gcc/glibc/etc...)

DESCRIPTION
The toolchain-funcs eclass contains a suite of functions that are used to glean information about the toolchain that is used to compile. This allows developers to worry about gcc specs rather than figuring out how to find the specs in the first place.

FUNCTIONS

tc-getAR
    Returns the name of the binutils archiver. Usually 'ar'.

tc-getAS
    Returns the name of the assembler. Usually 'as'.

tc-getBUILD_CC
    Returns the name of the compiler for the build system. Useful only when you have to compile and run a utility while building the package.

tc-getCC
    Returns the name of the C compiler binary. Usually 'gcc'.

tc-getCXX
    Returns the name of the C++ compiler binary. Usually 'g++'.

tc-getLD
    Returns the name of the linker. Usually 'ld'.

tc-getNM
    Returns the name of the symbol/object thingy. Usually 'nm'.

tc-getRANLIB
    Returns the name of the archiver indexer. Usually 'ranlib'.

gcc-fullversion
    Returns the version as by `$CC -dumpversion`.
    GCC 2.95.3 will return 2.95.3
    GCC 3.2.1 will return 3.2.1

gcc-version
    Returns the version, but only the <major>.<minor>.
    GCC 2.95.3 will return 2.95
    GCC 3.2.1 will return 3.2

gcc-major-version
    Returns the Major version.
    GCC 2.95.3 will return 2
    GCC 3.2.1 will return 3

gcc-minor-version
    Returns the Minor version.
    GCC 2.95.3 will return 95
    GCC 3.2.1 will return 2

gcc-micro-version
    Returns the Micro version.
    GCC 2.95.3 will return 3
    GCC 3.2.1 will return 1

REPORTING BUGS
Please report bugs via http://bugs.gentoo.org/

SEE ALSO
ebuild(5)

FILES
/usr/portage/eclass/toolchain-funcs.eclass

AUTHORS
Mike Frysinger <vapier@gentoo.org>

CVS HEADER
$Header: /var/cvsroot/gentoo-src/portage/man/toolchain-funcs.eclass.5,v 1.1 2004/10/21 00:56:56 vapier Exp $