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

Diff of /eclass/multilib.eclass

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

Revision 1.35 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.35 2005/10/06 20:33:21 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
592 export CTARGET_n64=mips64-${CTARGET_post} 591 export CTARGET_n64=mips64-${CTARGET_post}
593 export CDEFINE_n64="_MIPS_SIM == _ABI64" 592 export CDEFINE_n64="_MIPS_SIM == _ABI64"
594 export LIBDIR_n64="lib64" 593 export LIBDIR_n64="lib64"
595 594
596 export MULTILIB_ABIS="n64 n32 o32" 595 export MULTILIB_ABIS="n64 n32 o32"
596 case ${CTARGET} in
597 export DEFAULT_ABI="n32" 597 mips64*) export DEFAULT_ABI="n32" ;;
598 *) export DEFAULT_ABI="o32" ;;
599 esac
598 ;; 600 ;;
599 ppc64) 601 ppc64)
600 export CFLAGS_ppc=${CFLAGS_ppc--m32} 602 export CFLAGS_ppc=${CFLAGS_ppc--m32}
601 export CHOST_ppc=powerpc-${CTARGET_post} 603 export CHOST_ppc=powerpc-${CTARGET_post}
602 export CTARGET_ppc=powerpc-${CTARGET_post} 604 export CTARGET_ppc=powerpc-${CTARGET_post}
624 export CTARGET_sparc64=sparc64-${CTARGET_post} 626 export CTARGET_sparc64=sparc64-${CTARGET_post}
625 export CDEFINE_sparc64="__arch64__" 627 export CDEFINE_sparc64="__arch64__"
626 export LIBDIR_sparc64="lib64" 628 export LIBDIR_sparc64="lib64"
627 629
628 export MULTILIB_ABIS="sparc64 sparc32" 630 export MULTILIB_ABIS="sparc64 sparc32"
631 case ${CTARGET} in
629 export DEFAULT_ABI="sparc64" 632 sparc64*) export DEFAULT_ABI="sparc64" ;;
633 *) export DEFAULT_ABI="sparc32" ;;
634 esac
630 ;; 635 ;;
631 *) 636 *)
632 export MULTILIB_ABIS="default" 637 export MULTILIB_ABIS="default"
633 export DEFAULT_ABI="default" 638 export DEFAULT_ABI="default"
639 ;;
634 esac 640 esac
635} 641}

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

  ViewVC Help
Powered by ViewVC 1.1.20