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

Diff of /eclass/multilib.eclass

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

Revision 1.77 Revision 1.78
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.77 2009/10/08 20:10:56 grobian Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/multilib.eclass,v 1.78 2010/05/20 08:22:15 haubi 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
530 local libname 530 local libname
531 local ver=$1 531 local ver=$1
532 case ${CHOST} in 532 case ${CHOST} in
533 *-cygwin|mingw*|*-mingw*) libname="dll";; 533 *-cygwin|mingw*|*-mingw*) libname="dll";;
534 *-darwin*) libname="dylib";; 534 *-darwin*) libname="dylib";;
535 *-aix*) libname="a";;
536 *-mint*) libname="irrelevant";; 535 *-mint*) libname="irrelevant";;
537 hppa*-hpux*) libname="sl";; 536 hppa*-hpux*) libname="sl";;
538 *) libname="so";; 537 *) libname="so";;
539 esac 538 esac
540 539
542 echo ".${libname}" 541 echo ".${libname}"
543 else 542 else
544 for ver in "$@" ; do 543 for ver in "$@" ; do
545 case ${CHOST} in 544 case ${CHOST} in
546 *-darwin*) echo ".${ver}.${libname}";; 545 *-darwin*) echo ".${ver}.${libname}";;
547 *-aix*) echo ".${libname}";;
548 *-mint*) echo ".${libname}";; 546 *-mint*) echo ".${libname}";;
549 *) echo ".${libname}.${ver}";; 547 *) echo ".${libname}.${ver}";;
550 esac 548 esac
551 done 549 done
552 fi 550 fi

Legend:
Removed from v.1.77  
changed lines
  Added in v.1.78

  ViewVC Help
Powered by ViewVC 1.1.20