From: Fabian Groffen Date: Fri, 26 Feb 2010 18:09:43 +0000 (+0000) Subject: add support for Interix in dlopen_lib, bug #302575 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fb904870281a990b4b0b70cc1dd38ec38a99d697;p=gentoo.git add support for Interix in dlopen_lib, bug #302575 --- 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ò # @@ -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