summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>2016-04-12 13:54:59 +0200
committerMichael Haubenwallner <haubi@gentoo.org>2016-04-13 11:33:37 +0200
commite82fb848a715057de637559c889aebdce819ccfa (patch)
tree561a187efe7e228458071e6a6b3aa3f734b99cc4 /eclass/multilib.eclass
parentprefix/cygwin/x64/make.defaults: define multilib values (diff)
downloadgentoo-e82fb848a715057de637559c889aebdce819ccfa.tar.gz
gentoo-e82fb848a715057de637559c889aebdce819ccfa.tar.bz2
gentoo-e82fb848a715057de637559c889aebdce819ccfa.zip
multilib.eclass (get_libname): Cygwin uses (unversioned) import libs named dll.a
Diffstat (limited to 'eclass/multilib.eclass')
-rw-r--r--eclass/multilib.eclass12
1 files changed, 7 insertions, 5 deletions
diff --git a/eclass/multilib.eclass b/eclass/multilib.eclass
index 69582b652c21..d1c19ff55262 100644
--- a/eclass/multilib.eclass
+++ b/eclass/multilib.eclass
@@ -238,11 +238,12 @@ get_libname() {
local libname
local ver=$1
case ${CHOST} in
- *-cygwin|mingw*|*-mingw*) libname="dll";;
- *-darwin*) libname="dylib";;
- *-mint*) libname="irrelevant";;
- hppa*-hpux*) libname="sl";;
- *) libname="so";;
+ *-cygwin*) libname="dll.a";; # import lib
+ mingw*|*-mingw*) libname="dll";;
+ *-darwin*) libname="dylib";;
+ *-mint*) libname="irrelevant";;
+ hppa*-hpux*) libname="sl";;
+ *) libname="so";;
esac
if [[ -z $* ]] ; then
@@ -250,6 +251,7 @@ get_libname() {
else
for ver in "$@" ; do
case ${CHOST} in
+ *-cygwin*) echo ".${libname}";;
*-darwin*) echo ".${ver}.${libname}";;
*-mint*) echo ".${libname}";;
*) echo ".${libname}.${ver}";;