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

Diff of /eclass/portability.eclass

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

Revision 1.11 Revision 1.12
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.11 2007/01/01 22:27:01 swegener Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/portability.eclass,v 1.12 2009/03/22 11:26:45 grobian 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#
52 fi 52 fi
53} 53}
54 54
55# Gets the linker flag to link to dlopen() function 55# Gets the linker flag to link to dlopen() function
56dlopen_lib() { 56dlopen_lib() {
57 if [[ ${ELIBC} != *BSD ]]; then 57 # this might need a proper case statement, so far this seems to work as is
58 # - Solaris needs nothing
59 # - Darwin needs nothing
60 # - *BSD needs nothing
61 # - Linux needs -ldl
62 if [[ ${CHOST} == *-linux-gnu ]]; then
58 echo "-ldl" 63 echo "-ldl"
59 fi 64 fi
60} 65}
61 66
62# Gets the home directory for the specified user 67# Gets the home directory for the specified user

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

  ViewVC Help
Powered by ViewVC 1.1.20