Gentoo Archives: gentoo-commits

From: "Fabian Groffen (grobian)" <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in eclass: portability.eclass
Date: Fri, 26 Feb 2010 18:09:45
Message-Id: E1Nl4dD-0000NT-Mr@stork.gentoo.org
1 grobian 10/02/26 18:09:43
2
3 Modified: portability.eclass
4 Log:
5 add support for Interix in dlopen_lib, bug #302575
6
7 Revision Changes Path
8 1.15 eclass/portability.eclass
9
10 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/portability.eclass?rev=1.15&view=markup
11 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/portability.eclass?rev=1.15&content-type=text/plain
12 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/portability.eclass?r1=1.14&r2=1.15
13
14 Index: portability.eclass
15 ===================================================================
16 RCS file: /var/cvsroot/gentoo-x86/eclass/portability.eclass,v
17 retrieving revision 1.14
18 retrieving revision 1.15
19 diff -u -r1.14 -r1.15
20 --- portability.eclass 31 Oct 2009 15:34:59 -0000 1.14
21 +++ portability.eclass 26 Feb 2010 18:09:43 -0000 1.15
22 @@ -1,6 +1,6 @@
23 # Copyright 1999-2005 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25 -# $Header: /var/cvsroot/gentoo-x86/eclass/portability.eclass,v 1.14 2009/10/31 15:34:59 grobian Exp $
26 +# $Header: /var/cvsroot/gentoo-x86/eclass/portability.eclass,v 1.15 2010/02/26 18:09:43 grobian Exp $
27 #
28 # Author: Diego Pettenò <flameeyes@g.o>
29 #
30 @@ -54,14 +54,16 @@
31
32 # Gets the linker flag to link to dlopen() function
33 dlopen_lib() {
34 - # this might need a proper case statement, so far this seems to work as is
35 # - Solaris needs nothing
36 # - Darwin needs nothing
37 # - *BSD needs nothing
38 # - Linux needs -ldl (glibc and uclibc)
39 - if [[ ${CHOST} == *-linux-gnu* || ${CHOST} == *-linux-uclibc ]]; then
40 - echo "-ldl"
41 - fi
42 + # - Interix needs -ldl
43 + case "${CHOST}" in
44 + *-linux-gnu*|*-linux-uclibc|*-interix*)
45 + echo "-ldl"
46 + ;;
47 + esac
48 }
49
50 # Gets the home directory for the specified user