/[gentoo-x86]/eclass/multilib.eclass
Gentoo

Diff of /eclass/multilib.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.54 Revision 1.55
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 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.54 2006/07/12 07:40:49 kevquinn Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/multilib.eclass,v 1.55 2006/08/19 18:54:04 eradicator Exp $
4# 4#
5# Author: Jeremy Huddleston <eradicator@gentoo.org> 5# Author: Jeremy Huddleston <eradicator@gentoo.org>
6# 6#
7# This eclass is for all functions pertaining to handling multilib. 7# This eclass is for all functions pertaining to handling multilib.
8# configurations. 8# configurations.
658} 658}
659 659
660# Hide multilib details here for packages which are forced to be compiled for a 660# Hide multilib details here for packages which are forced to be compiled for a
661# specific ABI when run on another ABI (like x86-specific packages on amd64) 661# specific ABI when run on another ABI (like x86-specific packages on amd64)
662multilib_toolchain_setup() { 662multilib_toolchain_setup() {
663 export ABI=$1
664
663 if has_version app-admin/eselect-compiler ; then 665 if has_version app-admin/eselect-compiler ; then
664 # Binutils doesn't have wrappers for ld and as (yet). Eventually it 666 # Binutils doesn't have wrappers for ld and as (yet). Eventually it
665 # will, and all this can just be handled with CHOST. 667 # will, and all this can just be handled with CHOST.
666 export LD="ld $(get_abi_LDFLAGS $1)" 668 export LD="ld $(get_abi_LDFLAGS $1)"
667 export AS="as $(get_abi_ASFLAGS $1)" 669 export AS="as $(get_abi_ASFLAGS $1)"
668 670
669 export CHOST=$(get_abi_CHOST $1) 671 export CHOST=$(get_abi_CHOST $1)
670 export CBUILD=$(get_abi_CHOST $1) 672 export CBUILD=$(get_abi_CHOST $1)
671 else 673 else
672 tc-export CC 674 tc-export CC
673 export ABI=$1
674 fi 675 fi
675} 676}

Legend:
Removed from v.1.54  
changed lines
  Added in v.1.55

  ViewVC Help
Powered by ViewVC 1.1.20