summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-10-13 03:43:55 +0000
committerMike Frysinger <vapier@gentoo.org>2005-10-13 03:43:55 +0000
commit7d46dbca8d953a19a9a950b0dbc741a91d5db37e (patch)
tree374a6fc48c785bfff5a8d9b1ee34f0b40c3781c0 /eclass
parentmask rsync and com_err for collision-protect. Fixup base packages for progres... (diff)
downloadhistorical-7d46dbca8d953a19a9a950b0dbc741a91d5db37e.tar.gz
historical-7d46dbca8d953a19a9a950b0dbc741a91d5db37e.tar.bz2
historical-7d46dbca8d953a19a9a950b0dbc741a91d5db37e.zip
add support for n arguments rather than just one
Diffstat (limited to 'eclass')
-rw-r--r--eclass/multilib.eclass27
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
}