summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2009-03-22 11:26:45 +0000
committerFabian Groffen <grobian@gentoo.org>2009-03-22 11:26:45 +0000
commit114bf994335eee026bb8b0bb27723a52a8f42377 (patch)
treecb240abc6b5b10ca0741599c42332a3b89710c2c /eclass/portability.eclass
parentBump version build on top of qt3. (diff)
downloadhistorical-114bf994335eee026bb8b0bb27723a52a8f42377.tar.gz
historical-114bf994335eee026bb8b0bb27723a52a8f42377.tar.bz2
historical-114bf994335eee026bb8b0bb27723a52a8f42377.zip
make dlopen_lib work in a non-"BSD is the only other thing in the world" setting
Diffstat (limited to 'eclass/portability.eclass')
-rw-r--r--eclass/portability.eclass9
1 files changed, 7 insertions, 2 deletions
diff --git a/eclass/portability.eclass b/eclass/portability.eclass
index 2fb4271c307b..1165ceb6280e 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.11 2007/01/01 22:27:01 swegener Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/portability.eclass,v 1.12 2009/03/22 11:26:45 grobian Exp $
#
# Author: Diego Pettenò <flameeyes@gentoo.org>
#
@@ -54,7 +54,12 @@ seq() {
# Gets the linker flag to link to dlopen() function
dlopen_lib() {
- if [[ ${ELIBC} != *BSD ]]; then
+ # 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
+ if [[ ${CHOST} == *-linux-gnu ]]; then
echo "-ldl"
fi
}