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

Diff of /eclass/multilib.eclass

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

Revision 1.39 Revision 1.40
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.39 2005/10/07 03:39:15 eradicator Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/multilib.eclass,v 1.40 2005/10/07 05:37:16 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.
242# Return a list of the ABIs supported by this profile. 242# Return a list of the ABIs supported by this profile.
243# the last one in the list being the default. 243# the last one in the list being the default.
244get_all_abis() { 244get_all_abis() {
245 local order="" 245 local order=""
246 246
247 if [ -z "${MULTILIB_ABIS}" ]; then 247 if [[ -z ${MULTILIB_ABIS} ]] ; then
248 echo "default" 248 echo "default"
249 return 0 249 return 0
250 fi 250 fi
251 251
252 for x in ${MULTILIB_ABIS}; do 252 for x in ${MULTILIB_ABIS}; do
253 if [ "${x}" != "${DEFAULT_ABI}" ]; then 253 if [[ ${x} != ${DEFAULT_ABI} ]] ; then
254 order="${order:+${order }}${x}" 254 order="${order:+${order} }${x}"
255 fi 255 fi
256 done 256 done
257 order="${order:+${order} }${DEFAULT_ABI}" 257 order="${order:+${order} }${DEFAULT_ABI}"
258 258
259 echo ${order} 259 echo ${order}
590 export CTARGET_n64=mips64-${CTARGET_post} 590 export CTARGET_n64=mips64-${CTARGET_post}
591 export CDEFINE_n64="_MIPS_SIM == _ABI64" 591 export CDEFINE_n64="_MIPS_SIM == _ABI64"
592 export LIBDIR_n64="lib64" 592 export LIBDIR_n64="lib64"
593 593
594 export MULTILIB_ABIS="n64 n32 o32" 594 export MULTILIB_ABIS="n64 n32 o32"
595 export DEFAULT_ABI="n32" 595 export DEFAULT_ABI="n32"
596 ;; 596 ;;
597 powerpc64*) 597 powerpc64*)
598 export CFLAGS_ppc=${CFLAGS_ppc--m32} 598 export CFLAGS_ppc=${CFLAGS_ppc--m32}
599 export CHOST_ppc=powerpc-${CTARGET_post} 599 export CHOST_ppc=powerpc-${CTARGET_post}
600 export CTARGET_ppc=powerpc-${CTARGET_post} 600 export CTARGET_ppc=powerpc-${CTARGET_post}

Legend:
Removed from v.1.39  
changed lines
  Added in v.1.40

  ViewVC Help
Powered by ViewVC 1.1.20