diff options
author | Fabian Groffen <grobian@gentoo.org> | 2010-02-26 18:09:43 +0000 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2010-02-26 18:09:43 +0000 |
commit | 59538d2097f0d8b87aab0ffce4a496f1423be0c9 (patch) | |
tree | 7bfdb561d51d1b8a9ccec6643dca1fa564d6470d /eclass/portability.eclass | |
parent | Version bump wrt bug #304703 (diff) | |
download | gentoo-2-59538d2097f0d8b87aab0ffce4a496f1423be0c9.tar.gz gentoo-2-59538d2097f0d8b87aab0ffce4a496f1423be0c9.tar.bz2 gentoo-2-59538d2097f0d8b87aab0ffce4a496f1423be0c9.zip |
add support for Interix in dlopen_lib, bug #302575
Diffstat (limited to 'eclass/portability.eclass')
-rw-r--r-- | eclass/portability.eclass | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/eclass/portability.eclass b/eclass/portability.eclass index f9f678f6677d..8d7e362967f4 100644 --- a/eclass/portability.eclass +++ b/eclass/portability.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/portability.eclass,v 1.14 2009/10/31 15:34:59 grobian Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/portability.eclass,v 1.15 2010/02/26 18:09:43 grobian Exp $ # # Author: Diego Pettenò <flameeyes@gentoo.org> # @@ -54,14 +54,16 @@ seq() { # Gets the linker flag to link to dlopen() function dlopen_lib() { - # this might need a proper case statement, so far this seems to work as is # - Solaris needs nothing # - Darwin needs nothing # - *BSD needs nothing # - Linux needs -ldl (glibc and uclibc) - if [[ ${CHOST} == *-linux-gnu* || ${CHOST} == *-linux-uclibc ]]; then - echo "-ldl" - fi + # - Interix needs -ldl + case "${CHOST}" in + *-linux-gnu*|*-linux-uclibc|*-interix*) + echo "-ldl" + ;; + esac } # Gets the home directory for the specified user |