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

Diff of /eclass/multilib.eclass

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

Revision 1.66 Revision 1.69
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.66 2008/06/01 01:38:09 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/multilib.eclass,v 1.69 2008/11/28 09:20:26 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
526# Returns: libfoo.so.${PV} (ELF) || libfoo.${PV}.dylib (MACH) 526# Returns: libfoo.so.${PV} (ELF) || libfoo.${PV}.dylib (MACH)
527get_libname() { 527get_libname() {
528 local libname 528 local libname
529 local ver=$1 529 local ver=$1
530 case ${CHOST} in 530 case ${CHOST} in
531 mingw*|*-mingw*) libname="dll";; 531 *-cygwin|mingw*|*-mingw*) libname="dll";;
532 *-darwin*) libname="dylib";; 532 *-darwin*) libname="dylib";;
533 *) libname="so";; 533 *) libname="so";;
534 esac 534 esac
535 535
536 if [[ -z $* ]] ; then 536 if [[ -z $* ]] ; then
537 echo ".${libname}" 537 echo ".${libname}"
538 else 538 else
619 export LIBDIR_s390x="lib64" 619 export LIBDIR_s390x="lib64"
620 620
621 export MULTILIB_ABIS="s390x s390" 621 export MULTILIB_ABIS="s390x s390"
622 export DEFAULT_ABI="s390x" 622 export DEFAULT_ABI="s390x"
623 ;; 623 ;;
624 sparc64*) 624 sparc*)
625 export CFLAGS_sparc32=${CFLAGS_sparc32--m32} 625 export CFLAGS_sparc32=${CFLAGS_sparc32}
626 export CHOST_sparc32=${CTARGET/sparc64/sparc} 626 export CHOST_sparc32=${CTARGET/sparc64/sparc}
627 export CTARGET_sparc32=${CHOST_sparc32} 627 export CTARGET_sparc32=${CHOST_sparc32}
628 export CDEFINE_sparc32="!__arch64__" 628 export CDEFINE_sparc32="!__arch64__"
629 export LIBDIR_sparc32="lib" 629 export LIBDIR_sparc32="lib"
630 630
632 export CHOST_sparc64=${CTARGET} 632 export CHOST_sparc64=${CTARGET}
633 export CTARGET_sparc64=${CHOST_sparc64} 633 export CTARGET_sparc64=${CHOST_sparc64}
634 export CDEFINE_sparc64="__arch64__" 634 export CDEFINE_sparc64="__arch64__"
635 export LIBDIR_sparc64="lib64" 635 export LIBDIR_sparc64="lib64"
636 636
637 export MULTILIB_ABIS="sparc64 sparc32" 637 export MULTILIB_ABIS="${MULTILIB_ABIS-sparc64 sparc32}"
638 export DEFAULT_ABI="sparc64" 638 export DEFAULT_ABI="${DEFAULT_ABI-sparc64}"
639 ;; 639 ;;
640 *) 640 *)
641 export MULTILIB_ABIS="default" 641 export MULTILIB_ABIS="default"
642 export DEFAULT_ABI="default" 642 export DEFAULT_ABI="default"
643 ;; 643 ;;

Legend:
Removed from v.1.66  
changed lines
  Added in v.1.69

  ViewVC Help
Powered by ViewVC 1.1.20