| 1 | # Copyright 1999-2006 Gentoo Foundation |
1 | # Copyright 1999-2006 Gentoo Foundation |
| 2 | # Distributed under the terms of the GNU General Public License v2 |
2 | # Distributed under the terms of the GNU General Public License v2 |
| 3 | # $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.57 2006/03/28 21:25:14 kevquinn Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.58 2006/04/02 10:10:59 robbat2 Exp $ |
| 4 | # |
4 | # |
| 5 | # Author: Toolchain Ninjas <toolchain@gentoo.org> |
5 | # Author: Toolchain Ninjas <toolchain@gentoo.org> |
| 6 | # |
6 | # |
| 7 | # This eclass contains (or should) functions to get common info |
7 | # This eclass contains (or should) functions to get common info |
| 8 | # about the toolchain (libc/compiler/binutils/etc...) |
8 | # about the toolchain (libc/compiler/binutils/etc...) |
| … | |
… | |
| 33 | tc-getAR() { tc-getPROG AR ar "$@"; } |
33 | tc-getAR() { tc-getPROG AR ar "$@"; } |
| 34 | # Returns the name of the assembler |
34 | # Returns the name of the assembler |
| 35 | tc-getAS() { tc-getPROG AS as "$@"; } |
35 | tc-getAS() { tc-getPROG AS as "$@"; } |
| 36 | # Returns the name of the C compiler |
36 | # Returns the name of the C compiler |
| 37 | tc-getCC() { tc-getPROG CC gcc "$@"; } |
37 | tc-getCC() { tc-getPROG CC gcc "$@"; } |
|
|
38 | # Returns the name of the C preprocessor |
|
|
39 | tc-getCPP() { tc-getPROG CPP cpp "$@"; } |
| 38 | # Returns the name of the C++ compiler |
40 | # Returns the name of the C++ compiler |
| 39 | tc-getCXX() { tc-getPROG CXX g++ "$@"; } |
41 | tc-getCXX() { tc-getPROG CXX g++ "$@"; } |
| 40 | # Returns the name of the linker |
42 | # Returns the name of the linker |
| 41 | tc-getLD() { tc-getPROG LD ld "$@"; } |
43 | tc-getLD() { tc-getPROG LD ld "$@"; } |
| 42 | # Returns the name of the symbol/object thingy |
44 | # Returns the name of the symbol/object thingy |