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

Diff of /eclass/multilib.eclass

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

Revision 1.63 Revision 1.64
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2007 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.63 2007/07/01 23:14:58 peper Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/multilib.eclass,v 1.64 2008/05/02 04:07:38 vapier Exp $
4# 4#
5# Maintainer: amd64@gentoo.org / toolchain@gentoo.org 5# Maintainer: amd64@gentoo.org / toolchain@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.
533 533
534get_libname() { 534get_libname() {
535 local libname 535 local libname
536 local ver=$1 536 local ver=$1
537 case ${CHOST} in 537 case ${CHOST} in
538 mingw*|*-mingw*) libname="dll";;
538 *-darwin*) libname="dylib";; 539 *-darwin*) libname="dylib";;
539 *) libname="so";; 540 *) libname="so";;
540 esac 541 esac
541 542
542 if [[ -z $@ ]] ; then 543 if [[ -z $* ]] ; then
543 echo ".${libname}" 544 echo ".${libname}"
544 else 545 else
545 for ver in "$@" ; do 546 for ver in "$@" ; do
546 case ${CHOST} in 547 case ${CHOST} in
547 *-darwin*) echo ".${ver}.${libname}";; 548 *-darwin*) echo ".${ver}.${libname}";;

Legend:
Removed from v.1.63  
changed lines
  Added in v.1.64

  ViewVC Help
Powered by ViewVC 1.1.20