| 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.13 2009/03/27 08:00:56 drizzt Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/portability.eclass,v 1.14 2009/10/31 15:34:59 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 | # |
| … | |
… | |
| 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 (glibc and uclibc) |
61 | # - Linux needs -ldl (glibc and uclibc) |
| 62 | if [[ ${CHOST} == *-linux-gnu || ${CHOST} == *-linux-uclibc ]]; 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 |