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

Diff of /eclass/multilib.eclass

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

Revision 1.34 Revision 1.36
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.34 2005/10/06 10:03:53 eradicator Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/multilib.eclass,v 1.36 2005/10/07 01:22:36 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.
9
10 9
11DESCRIPTION="Based on the ${ECLASS} eclass" 10DESCRIPTION="Based on the ${ECLASS} eclass"
12 11
13# has_multilib_profile: 12# has_multilib_profile:
14# Return true if the current profile is a multilib profile and lists more than 13# Return true if the current profile is a multilib profile and lists more than
100# This causes econf to set --libdir=/usr/lib where it didn't before 99# This causes econf to set --libdir=/usr/lib where it didn't before
101#export ABI=${ABI:-"default"} 100#export ABI=${ABI:-"default"}
102export CFLAGS_default 101export CFLAGS_default
103export LDFLAGS_default 102export LDFLAGS_default
104export CHOST_default=${CHOST_default:-${CHOST}} 103export CHOST_default=${CHOST_default:-${CHOST}}
104export CTARGET_default=${CTARGET_default:-${CTARGET}}
105export LIBDIR_default=${CONF_LIBDIR:-"lib"} 105export LIBDIR_default=${CONF_LIBDIR:-"lib"}
106export CDEFINE_default="__unix__" 106export CDEFINE_default="__unix__"
107 107
108# has_multilib_profile() 108# has_multilib_profile()
109has_multilib_profile() { 109has_multilib_profile() {
591 export CTARGET_n64=mips64-${CTARGET_post} 591 export CTARGET_n64=mips64-${CTARGET_post}
592 export CDEFINE_n64="_MIPS_SIM == _ABI64" 592 export CDEFINE_n64="_MIPS_SIM == _ABI64"
593 export LIBDIR_n64="lib64" 593 export LIBDIR_n64="lib64"
594 594
595 export MULTILIB_ABIS="n64 n32 o32" 595 export MULTILIB_ABIS="n64 n32 o32"
596 case ${CTARGET} in
596 export DEFAULT_ABI="n32" 597 mips64*) export DEFAULT_ABI="n32" ;;
598 *) export DEFAULT_ABI="o32" ;;
599 esac
597 ;; 600 ;;
598 ppc64) 601 ppc64)
599 export CFLAGS_ppc=${CFLAGS_ppc--m32} 602 export CFLAGS_ppc=${CFLAGS_ppc--m32}
600 export CHOST_ppc=powerpc-${CTARGET_post} 603 export CHOST_ppc=powerpc-${CTARGET_post}
601 export CTARGET_ppc=powerpc-${CTARGET_post} 604 export CTARGET_ppc=powerpc-${CTARGET_post}
623 export CTARGET_sparc64=sparc64-${CTARGET_post} 626 export CTARGET_sparc64=sparc64-${CTARGET_post}
624 export CDEFINE_sparc64="__arch64__" 627 export CDEFINE_sparc64="__arch64__"
625 export LIBDIR_sparc64="lib64" 628 export LIBDIR_sparc64="lib64"
626 629
627 export MULTILIB_ABIS="sparc64 sparc32" 630 export MULTILIB_ABIS="sparc64 sparc32"
631 case ${CTARGET} in
628 export DEFAULT_ABI="sparc64" 632 sparc64*) export DEFAULT_ABI="sparc64" ;;
633 *) export DEFAULT_ABI="sparc32" ;;
634 esac
629 ;; 635 ;;
630 *) 636 *)
631 export MULTILIB_ABIS="default" 637 export MULTILIB_ABIS="default"
632 export DEFAULT_ABI="default" 638 export DEFAULT_ABI="default"
639 ;;
633 esac 640 esac
634} 641}

Legend:
Removed from v.1.34  
changed lines
  Added in v.1.36

  ViewVC Help
Powered by ViewVC 1.1.20