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.68 2008/11/28 06:31:30 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) |
527 | get_libname() { |
527 | get_libname() { |
528 | local libname |
528 | local libname |
529 | local ver=$1 |
529 | local ver=$1 |
530 | case ${CHOST} in |
530 | case ${CHOST} in |
531 | cygwin|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 |