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

Diff of /eclass/multilib.eclass

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

Revision 1.81 Revision 1.82
1# Copyright 1999-2008 Gentoo Foundation 1# Copyright 1999-2008 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.81 2011/03/10 01:52:22 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/multilib.eclass,v 1.82 2011/03/10 04:26:38 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
587 export CHOST_amd64=${CTARGET} 587 export CHOST_amd64=${CTARGET}
588 export CTARGET_amd64=${CHOST_amd64} 588 export CTARGET_amd64=${CHOST_amd64}
589 export CDEFINE_amd64="__x86_64__" 589 export CDEFINE_amd64="__x86_64__"
590 export LIBDIR_amd64="lib64" 590 export LIBDIR_amd64="lib64"
591 591
592 export CFLAGS_x32=${CFLAGS_x32--mx32}
593 export CHOST_x32=${CTARGET}
594 export CTARGET_x32=${CHOST_x32}
595 export CDEFINE_x32="__i386__"
596 export LIBDIR_x32="libx32"
597
592 export MULTILIB_ABIS="amd64 x86" 598 : ${MULTILIB_ABIS=amd64 x86}
593 export DEFAULT_ABI="amd64" 599 : ${DEFAULT_ABI=amd64}
594 ;; 600 ;;
595 mips64*) 601 mips64*)
596 export CFLAGS_o32=${CFLAGS_o32--mabi=32} 602 export CFLAGS_o32=${CFLAGS_o32--mabi=32}
597 export CHOST_o32=${CTARGET/mips64/mips} 603 export CHOST_o32=${CTARGET/mips64/mips}
598 export CTARGET_o32=${CHOST_o32} 604 export CTARGET_o32=${CHOST_o32}
609 export CHOST_n64=${CTARGET} 615 export CHOST_n64=${CTARGET}
610 export CTARGET_n64=${CHOST_n64} 616 export CTARGET_n64=${CHOST_n64}
611 export CDEFINE_n64="_MIPS_SIM == _ABI64" 617 export CDEFINE_n64="_MIPS_SIM == _ABI64"
612 export LIBDIR_n64="lib64" 618 export LIBDIR_n64="lib64"
613 619
614 export MULTILIB_ABIS="n64 n32 o32" 620 : ${MULTILIB_ABIS=n64 n32 o32}
615 export DEFAULT_ABI="n32" 621 : ${DEFAULT_ABI=n32}
616 ;; 622 ;;
617 powerpc64*) 623 powerpc64*)
618 export CFLAGS_ppc=${CFLAGS_ppc--m32} 624 export CFLAGS_ppc=${CFLAGS_ppc--m32}
619 export CHOST_ppc=${CTARGET/powerpc64/powerpc} 625 export CHOST_ppc=${CTARGET/powerpc64/powerpc}
620 export CTARGET_ppc=${CHOST_ppc} 626 export CTARGET_ppc=${CHOST_ppc}
625 export CHOST_ppc64=${CTARGET} 631 export CHOST_ppc64=${CTARGET}
626 export CTARGET_ppc64=${CHOST_ppc64} 632 export CTARGET_ppc64=${CHOST_ppc64}
627 export CDEFINE_ppc64="__powerpc64__" 633 export CDEFINE_ppc64="__powerpc64__"
628 export LIBDIR_ppc64="lib64" 634 export LIBDIR_ppc64="lib64"
629 635
630 export MULTILIB_ABIS="ppc64 ppc" 636 : ${MULTILIB_ABIS=ppc64 ppc}
631 export DEFAULT_ABI="ppc64" 637 : ${DEFAULT_ABI=ppc64}
632 ;; 638 ;;
633 s390x*) 639 s390x*)
634 export CFLAGS_s390=${CFLAGS_s390--m31} # the 31 is not a typo 640 export CFLAGS_s390=${CFLAGS_s390--m31} # the 31 is not a typo
635 export CHOST_s390=${CTARGET/s390x/s390} 641 export CHOST_s390=${CTARGET/s390x/s390}
636 export CTARGET_s390=${CHOST_s390} 642 export CTARGET_s390=${CHOST_s390}
641 export CHOST_s390x=${CTARGET} 647 export CHOST_s390x=${CTARGET}
642 export CTARGET_s390x=${CHOST_s390x} 648 export CTARGET_s390x=${CHOST_s390x}
643 export CDEFINE_s390x="__s390x__" 649 export CDEFINE_s390x="__s390x__"
644 export LIBDIR_s390x="lib64" 650 export LIBDIR_s390x="lib64"
645 651
646 export MULTILIB_ABIS="s390x s390" 652 : ${MULTILIB_ABIS=s390x s390}
647 export DEFAULT_ABI="s390x" 653 : ${DEFAULT_ABI=s390x}
648 ;; 654 ;;
649 sparc*) 655 sparc*)
650 export CFLAGS_sparc32=${CFLAGS_sparc32} 656 export CFLAGS_sparc32=${CFLAGS_sparc32}
651 export CHOST_sparc32=${CTARGET/sparc64/sparc} 657 export CHOST_sparc32=${CTARGET/sparc64/sparc}
652 export CTARGET_sparc32=${CHOST_sparc32} 658 export CTARGET_sparc32=${CHOST_sparc32}
657 export CHOST_sparc64=${CTARGET} 663 export CHOST_sparc64=${CTARGET}
658 export CTARGET_sparc64=${CHOST_sparc64} 664 export CTARGET_sparc64=${CHOST_sparc64}
659 export CDEFINE_sparc64="__arch64__" 665 export CDEFINE_sparc64="__arch64__"
660 export LIBDIR_sparc64="lib64" 666 export LIBDIR_sparc64="lib64"
661 667
662 export MULTILIB_ABIS="${MULTILIB_ABIS-sparc64 sparc32}" 668 : ${MULTILIB_ABIS=sparc64 sparc32}
663 export DEFAULT_ABI="${DEFAULT_ABI-sparc64}" 669 : ${DEFAULT_ABI=sparc64}
664 ;; 670 ;;
665 *) 671 *)
666 export MULTILIB_ABIS="default" 672 : ${MULTILIB_ABIS=default}
667 export DEFAULT_ABI="default" 673 : ${DEFAULT_ABI=default}
668 ;; 674 ;;
669 esac 675 esac
676
677 export MULTILIB_ABIS MULTILIB_ABI
670} 678}
671 679
672# @FUNCTION: multilib_toolchain_setup 680# @FUNCTION: multilib_toolchain_setup
673# @DESCRIPTION: 681# @DESCRIPTION:
674# Hide multilib details here for packages which are forced to be compiled for a 682# Hide multilib details here for packages which are forced to be compiled for a

Legend:
Removed from v.1.81  
changed lines
  Added in v.1.82

  ViewVC Help
Powered by ViewVC 1.1.20