| 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.58 2006/04/02 10:10:59 robbat2 Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.59 2006/06/28 16:19:46 kanaka 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...) |
| … | |
… | |
| 39 | tc-getCPP() { tc-getPROG CPP cpp "$@"; } |
39 | tc-getCPP() { tc-getPROG CPP cpp "$@"; } |
| 40 | # Returns the name of the C++ compiler |
40 | # Returns the name of the C++ compiler |
| 41 | tc-getCXX() { tc-getPROG CXX g++ "$@"; } |
41 | tc-getCXX() { tc-getPROG CXX g++ "$@"; } |
| 42 | # Returns the name of the linker |
42 | # Returns the name of the linker |
| 43 | tc-getLD() { tc-getPROG LD ld "$@"; } |
43 | tc-getLD() { tc-getPROG LD ld "$@"; } |
|
|
44 | # Returns the name of the strip prog |
|
|
45 | tc-getSTRIP() { tc-getPROG STRIP strip "$@"; } |
| 44 | # Returns the name of the symbol/object thingy |
46 | # Returns the name of the symbol/object thingy |
| 45 | tc-getNM() { tc-getPROG NM nm "$@"; } |
47 | tc-getNM() { tc-getPROG NM nm "$@"; } |
| 46 | # Returns the name of the archiver indexer |
48 | # Returns the name of the archiver indexer |
| 47 | tc-getRANLIB() { tc-getPROG RANLIB ranlib "$@"; } |
49 | tc-getRANLIB() { tc-getPROG RANLIB ranlib "$@"; } |
|
|
50 | # Returns the name of the fortran 77 compiler |
|
|
51 | tc-getF77() { tc-getPROG F77 f77 "$@"; } |
|
|
52 | # Returns the name of the fortran 90 compiler |
|
|
53 | tc-getF90() { tc-getPROG F90 gfortran "$@"; } |
| 48 | # Returns the name of the fortran compiler |
54 | # Returns the name of the fortran compiler |
| 49 | tc-getF77() { tc-getPROG F77 f77 "$@"; } |
55 | tc-getFORTRAN() { tc-getPROG FORTRAN gfortran "$@"; } |
| 50 | # Returns the name of the java compiler |
56 | # Returns the name of the java compiler |
| 51 | tc-getGCJ() { tc-getPROG GCJ gcj "$@"; } |
57 | tc-getGCJ() { tc-getPROG GCJ gcj "$@"; } |
| 52 | |
58 | |
| 53 | # Returns the name of the C compiler for build |
59 | # Returns the name of the C compiler for build |
| 54 | tc-getBUILD_CC() { |
60 | tc-getBUILD_CC() { |