/[gentoo-x86]/eclass/portability.eclass
Gentoo

Diff of /eclass/portability.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.12 Revision 1.13
1# Copyright 1999-2005 Gentoo Foundation 1# Copyright 1999-2005 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/portability.eclass,v 1.12 2009/03/22 11:26:45 grobian Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/portability.eclass,v 1.13 2009/03/27 08:00:56 drizzt Exp $
4# 4#
5# Author: Diego Pettenò <flameeyes@gentoo.org> 5# Author: Diego Pettenò <flameeyes@gentoo.org>
6# 6#
7# This eclass is created to avoid using non-portable GNUisms inside ebuilds 7# This eclass is created to avoid using non-portable GNUisms inside ebuilds
8# 8#
56dlopen_lib() { 56dlopen_lib() {
57 # this might need a proper case statement, so far this seems to work as is 57 # this might need a proper case statement, so far this seems to work as is
58 # - Solaris needs nothing 58 # - Solaris needs nothing
59 # - Darwin needs nothing 59 # - Darwin needs nothing
60 # - *BSD needs nothing 60 # - *BSD needs nothing
61 # - Linux needs -ldl 61 # - Linux needs -ldl (glibc and uclibc)
62 if [[ ${CHOST} == *-linux-gnu ]]; then 62 if [[ ${CHOST} == *-linux-gnu || ${CHOST} == *-linux-uclibc ]]; then
63 echo "-ldl" 63 echo "-ldl"
64 fi 64 fi
65} 65}
66 66
67# Gets the home directory for the specified user 67# Gets the home directory for the specified user

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

  ViewVC Help
Powered by ViewVC 1.1.20