| 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/multilib.eclass,v 1.95 2011/10/27 05:50:40 vapier Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/multilib.eclass,v 1.96 2011/12/10 19:41:51 vapier Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: multilib.eclass |
5 | # @ECLASS: multilib.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # amd64@gentoo.org |
7 | # amd64@gentoo.org |
| 8 | # toolchain@gentoo.org |
8 | # toolchain@gentoo.org |
| 9 | # @BLURB: This eclass is for all functions pertaining to handling multilib configurations. |
9 | # @BLURB: This eclass is for all functions pertaining to handling multilib configurations. |
| 10 | # @DESCRIPTION: |
10 | # @DESCRIPTION: |
| 11 | # This eclass is for all functions pertaining to handling multilib configurations. |
11 | # This eclass is for all functions pertaining to handling multilib configurations. |
| 12 | |
12 | |
| 13 | ___ECLASS_RECUR_MULTILIB="yes" |
13 | if [[ ${___ECLASS_ONCE_MULTILIB} != "recur -_+^+_- spank" ]] ; then |
| 14 | [[ -z ${___ECLASS_RECUR_TOOLCHAIN_FUNCS} ]] && inherit toolchain-funcs |
14 | ___ECLASS_ONCE_MULTILIB="recur -_+^+_- spank" |
|
|
15 | |
|
|
16 | inherit toolchain-funcs |
| 15 | |
17 | |
| 16 | # Defaults: |
18 | # Defaults: |
| 17 | export MULTILIB_ABIS=${MULTILIB_ABIS:-"default"} |
19 | export MULTILIB_ABIS=${MULTILIB_ABIS:-"default"} |
| 18 | export DEFAULT_ABI=${DEFAULT_ABI:-"default"} |
20 | export DEFAULT_ABI=${DEFAULT_ABI:-"default"} |
| 19 | export CFLAGS_default |
21 | export CFLAGS_default |
| … | |
… | |
| 404 | export LD="$(tc-getLD) $(get_abi_LDFLAGS)" |
406 | export LD="$(tc-getLD) $(get_abi_LDFLAGS)" |
| 405 | export CHOST=$(get_abi_CHOST $1) |
407 | export CHOST=$(get_abi_CHOST $1) |
| 406 | export CBUILD=$(get_abi_CHOST $1) |
408 | export CBUILD=$(get_abi_CHOST $1) |
| 407 | fi |
409 | fi |
| 408 | } |
410 | } |
|
|
411 | |
|
|
412 | fi |