diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-10-13 03:43:55 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-10-13 03:43:55 +0000 |
commit | 698dbd4f6b026f52815fe62dfcdd7ee46755cb3c (patch) | |
tree | 4b05aa62e82b1309d2f9b7b674b17f5ce40bcacc /eclass/multilib.eclass | |
parent | mask rsync and com_err for collision-protect. Fixup base packages for progres... (diff) | |
download | gentoo-2-698dbd4f6b026f52815fe62dfcdd7ee46755cb3c.tar.gz gentoo-2-698dbd4f6b026f52815fe62dfcdd7ee46755cb3c.tar.bz2 gentoo-2-698dbd4f6b026f52815fe62dfcdd7ee46755cb3c.zip |
add support for n arguments rather than just one
Diffstat (limited to 'eclass/multilib.eclass')
-rw-r--r-- | eclass/multilib.eclass | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/eclass/multilib.eclass b/eclass/multilib.eclass index c041a5df74e7..177def4498bc 100644 --- a/eclass/multilib.eclass +++ b/eclass/multilib.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/multilib.eclass,v 1.43 2005/10/12 22:39:07 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/multilib.eclass,v 1.44 2005/10/13 03:43:55 vapier Exp $ # # Author: Jeremy Huddleston <eradicator@gentoo.org> # @@ -533,19 +533,22 @@ create_ml_includes-sym_for_dir() { } get_libname() { + local libname local ver=$1 - if use userland_Darwin ; then - if [ -z ${ver} ] ; then - echo ".dylib" - else - echo ".${ver}.dylib" - fi + case ${CHOST} in + *-darwin*) libname="dylib";; + *) libname="so";; + esac + + if [[ -z $@ ]] ; then + echo ".${libname}" else - if [ -z ${ver} ] ; then - echo ".so" - else - echo ".so.${ver}" - fi + for ver in "$@" ; do + case ${CHOST} in + *-darwin*) echo ".${ver}.${libname}";; + *) echo ".${libname}.${ver}";; + esac + done fi } |