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

Diff of /eclass/multilib.eclass

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

Revision 1.1.1.1 Revision 1.43
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.1.1.1 2005/11/30 09:59:17 chriswhite Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/multilib.eclass,v 1.43 2005/10/12 22:39:07 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.
531 # exit because we'll likely be called from a subshell 531 # exit because we'll likely be called from a subshell
532 exit 1 532 exit 1
533} 533}
534 534
535get_libname() { 535get_libname() {
536 local libname
537 local ver=$1 536 local ver=$1
538 case ${CHOST} in 537 if use userland_Darwin ; then
539 *-darwin*) libname="dylib";;
540 *) libname="so";;
541 esac
542
543 if [[ -z $@ ]] ; then 538 if [ -z ${ver} ] ; then
544 echo ".${libname}" 539 echo ".dylib"
540 else
541 echo ".${ver}.dylib"
542 fi
545 else 543 else
546 for ver in "$@" ; do 544 if [ -z ${ver} ] ; then
547 case ${CHOST} in 545 echo ".so"
548 *-darwin*) echo ".${ver}.${libname}";; 546 else
549 *) echo ".${libname}.${ver}";; 547 echo ".so.${ver}"
550 esac 548 fi
551 done
552 fi 549 fi
553} 550}
554 551
555# 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
556# a crosscompiler (and thus they aren't set in the profile) 553# a crosscompiler (and thus they aren't set in the profile)
591 export CHOST_n64=${CTARGET} 588 export CHOST_n64=${CTARGET}
592 export CTARGET_n64=${CHOST_n64} 589 export CTARGET_n64=${CHOST_n64}
593 export CDEFINE_n64="_MIPS_SIM == _ABI64" 590 export CDEFINE_n64="_MIPS_SIM == _ABI64"
594 export LIBDIR_n64="lib64" 591 export LIBDIR_n64="lib64"
595 592
596 export MULTILIB_ABIS="n64 n32 o32" 593 export MULTILIB_ABIS="n64 n32" # o32
597 export DEFAULT_ABI="n32" 594 export DEFAULT_ABI="n32"
598 ;; 595 ;;
599 powerpc64*) 596 powerpc64*)
600 export CFLAGS_ppc=${CFLAGS_ppc--m32} 597 export CFLAGS_ppc=${CFLAGS_ppc--m32}
601 export CHOST_ppc=${CTARGET/powerpc64/powerpc} 598 export CHOST_ppc=${CTARGET/powerpc64/powerpc}
602 export CTARGET_ppc=${CHOST_ppc} 599 export CTARGET_ppc=${CHOST_ppc}

Legend:
Removed from v.1.1.1.1  
changed lines
  Added in v.1.43

  ViewVC Help
Powered by ViewVC 1.1.20