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

Diff of /eclass/multilib.eclass

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

Revision 1.40 Revision 1.41
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.40 2005/10/07 05:37:16 eradicator Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/multilib.eclass,v 1.41 2005/10/09 04:40:14 vapier 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.
550} 550}
551 551
552# This is for the toolchain to setup profile variables when pulling in 552# This is for the toolchain to setup profile variables when pulling in
553# a crosscompiler (and thus they aren't set in the profile) 553# a crosscompiler (and thus they aren't set in the profile)
554multilib_env() { 554multilib_env() {
555 local CTARGET=$1 555 local CTARGET=${1:-${CTARGET}}
556 local CTARGET_post=${CTARGET#*-} 556 local CTARGET_post=${CTARGET#*-}
557 557
558 case ${CTARGET} in 558 case ${CTARGET} in
559 x86_64*) 559 x86_64*)
560 export CFLAGS_x86=${CFLAGS_x86--m32} 560 export CFLAGS_x86=${CFLAGS_x86--m32}
589 export CHOST_n64=mips64-${CTARGET_post} 589 export CHOST_n64=mips64-${CTARGET_post}
590 export CTARGET_n64=mips64-${CTARGET_post} 590 export CTARGET_n64=mips64-${CTARGET_post}
591 export CDEFINE_n64="_MIPS_SIM == _ABI64" 591 export CDEFINE_n64="_MIPS_SIM == _ABI64"
592 export LIBDIR_n64="lib64" 592 export LIBDIR_n64="lib64"
593 593
594 export MULTILIB_ABIS="n64 n32 o32" 594 export MULTILIB_ABIS="n64 n32" # o32
595 export DEFAULT_ABI="n32" 595 export DEFAULT_ABI="n32"
596 ;; 596 ;;
597 powerpc64*) 597 powerpc64*)
598 export CFLAGS_ppc=${CFLAGS_ppc--m32} 598 export CFLAGS_ppc=${CFLAGS_ppc--m32}
599 export CHOST_ppc=powerpc-${CTARGET_post} 599 export CHOST_ppc=powerpc-${CTARGET_post}

Legend:
Removed from v.1.40  
changed lines
  Added in v.1.41

  ViewVC Help
Powered by ViewVC 1.1.20