From: | "Fabian Groffen (grobian)" <grobian@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in eclass: portability.eclass |
Date: | Sun, 22 Mar 2009 11:26:47 |
Message-Id: | E1LlLpF-0003Ci-GB@stork.gentoo.org |
1 | grobian 09/03/22 11:26:45 |
2 | |
3 | Modified: portability.eclass |
4 | Log: |
5 | make dlopen_lib work in a non-"BSD is the only other thing in the world" setting |
6 | |
7 | Revision Changes Path |
8 | 1.12 eclass/portability.eclass |
9 | |
10 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/portability.eclass?rev=1.12&view=markup |
11 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/portability.eclass?rev=1.12&content-type=text/plain |
12 | diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/portability.eclass?r1=1.11&r2=1.12 |
13 | |
14 | Index: portability.eclass |
15 | =================================================================== |
16 | RCS file: /var/cvsroot/gentoo-x86/eclass/portability.eclass,v |
17 | retrieving revision 1.11 |
18 | retrieving revision 1.12 |
19 | diff -u -r1.11 -r1.12 |
20 | --- portability.eclass 1 Jan 2007 22:27:01 -0000 1.11 |
21 | +++ portability.eclass 22 Mar 2009 11:26:45 -0000 1.12 |
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.11 2007/01/01 22:27:01 swegener Exp $ |
26 | +# $Header: /var/cvsroot/gentoo-x86/eclass/portability.eclass,v 1.12 2009/03/22 11:26:45 grobian Exp $ |
27 | # |
28 | # Author: Diego Pettenò <flameeyes@g.o> |
29 | # |
30 | @@ -54,7 +54,12 @@ |
31 | |
32 | # Gets the linker flag to link to dlopen() function |
33 | dlopen_lib() { |
34 | - if [[ ${ELIBC} != *BSD ]]; then |
35 | + # this might need a proper case statement, so far this seems to work as is |
36 | + # - Solaris needs nothing |
37 | + # - Darwin needs nothing |
38 | + # - *BSD needs nothing |
39 | + # - Linux needs -ldl |
40 | + if [[ ${CHOST} == *-linux-gnu ]]; then |
41 | echo "-ldl" |
42 | fi |
43 | } |