1 | # Copyright 1999-2004 Gentoo Foundation |
1 | # Copyright 1999-2004 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/multilib.eclass,v 1.46 2005/10/17 08:45:38 eradicator Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/multilib.eclass,v 1.47 2006/01/07 04:40:45 eradicator Exp $ |
4 | # |
4 | # |
5 | # Author: Jeremy Huddleston <eradicator@gentoo.org> |
5 | # Author: Jeremy Huddleston <eradicator@gentoo.org> |
6 | # |
6 | # |
7 | # This eclass is for all functions pertaining to handling multilib. |
7 | # This eclass is for all functions pertaining to handling multilib. |
8 | # configurations. |
8 | # configurations. |
… | |
… | |
266 | get_all_libdirs() { |
266 | get_all_libdirs() { |
267 | local libdirs="lib" |
267 | local libdirs="lib" |
268 | local abi |
268 | local abi |
269 | local dir |
269 | local dir |
270 | |
270 | |
271 | if has_multilib_profile; then |
271 | # Remove when amd64's 2004.3 is purged. |
|
|
272 | if [[ -n "${CONF_LIBDIR}" ]]; then |
|
|
273 | for dir in ${CONF_LIBDIR} ${CONF_MULTILIBDIR:-lib32}; do |
|
|
274 | [ "${dir}" != "lib" ] && libdirs="${libdirs} ${dir}" |
|
|
275 | done |
|
|
276 | else |
272 | for abi in ${MULTILIB_ABIS}; do |
277 | for abi in ${MULTILIB_ABIS}; do |
273 | [ "$(get_abi_LIBDIR ${abi})" != "lib" ] && libdirs="${libdirs} $(get_abi_LIBDIR ${abi})" |
278 | [ "$(get_abi_LIBDIR ${abi})" != "lib" ] && libdirs="${libdirs} $(get_abi_LIBDIR ${abi})" |
274 | done |
|
|
275 | elif [ -n "${CONF_LIBDIR}" ]; then |
|
|
276 | for dir in ${CONF_LIBDIR} ${CONF_MULTILIBDIR:-lib32}; do |
|
|
277 | [ "${dir}" != "lib" ] && libdirs="${libdirs} ${dir}" |
|
|
278 | done |
279 | done |
279 | fi |
280 | fi |
280 | |
281 | |
281 | echo "${libdirs}" |
282 | echo "${libdirs}" |
282 | } |
283 | } |