| 1 | # Copyright 1999-2011 Gentoo Foundation |
1 | # Copyright 1999-2011 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.108 2011/10/17 19:11:49 vapier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/toolchain-funcs.eclass,v 1.109 2011/12/10 19:45:00 vapier Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: toolchain-funcs.eclass |
5 | # @ECLASS: toolchain-funcs.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # Toolchain Ninjas <toolchain@gentoo.org> |
7 | # Toolchain Ninjas <toolchain@gentoo.org> |
| 8 | # @BLURB: functions to query common info about the toolchain |
8 | # @BLURB: functions to query common info about the toolchain |
| … | |
… | |
| 11 | # for gleaning useful information about the toolchain and to simplify |
11 | # for gleaning useful information about the toolchain and to simplify |
| 12 | # ugly things like cross-compiling and multilib. All of this is done |
12 | # ugly things like cross-compiling and multilib. All of this is done |
| 13 | # in such a way that you can rely on the function always returning |
13 | # in such a way that you can rely on the function always returning |
| 14 | # something sane. |
14 | # something sane. |
| 15 | |
15 | |
| 16 | ___ECLASS_RECUR_TOOLCHAIN_FUNCS="yes" |
16 | if [[ ${___ECLASS_ONCE_TOOLCHAIN_FUNCS} != "recur -_+^+_- spank" ]] ; then |
| 17 | [[ -z ${___ECLASS_RECUR_MULTILIB} ]] && inherit multilib |
17 | ___ECLASS_ONCE_TOOLCHAIN_FUNCS="recur -_+^+_- spank" |
|
|
18 | |
|
|
19 | inherit multilib |
| 18 | |
20 | |
| 19 | DESCRIPTION="Based on the ${ECLASS} eclass" |
21 | DESCRIPTION="Based on the ${ECLASS} eclass" |
| 20 | |
22 | |
| 21 | # tc-getPROG <VAR [search vars]> <default> [tuple] |
23 | # tc-getPROG <VAR [search vars]> <default> [tuple] |
| 22 | _tc-getPROG() { |
24 | _tc-getPROG() { |
| … | |
… | |
| 757 | ;; |
759 | ;; |
| 758 | esac |
760 | esac |
| 759 | fperms a+x "/usr/${libdir}/${lib}" || die "could not change perms on ${lib}" |
761 | fperms a+x "/usr/${libdir}/${lib}" || die "could not change perms on ${lib}" |
| 760 | done |
762 | done |
| 761 | } |
763 | } |
|
|
764 | |
|
|
765 | fi |