| 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.47 2006/01/07 04:40:45 eradicator Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/multilib.eclass,v 1.49 2006/05/28 19:31:33 blubb 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. |
| … | |
… | |
| 100 | export LDFLAGS_default |
100 | export LDFLAGS_default |
| 101 | export CHOST_default=${CHOST_default:-${CHOST}} |
101 | export CHOST_default=${CHOST_default:-${CHOST}} |
| 102 | export CTARGET_default=${CTARGET_default:-${CTARGET:-${CHOST_default}}} |
102 | export CTARGET_default=${CTARGET_default:-${CTARGET:-${CHOST_default}}} |
| 103 | export LIBDIR_default=${CONF_LIBDIR:-"lib"} |
103 | export LIBDIR_default=${CONF_LIBDIR:-"lib"} |
| 104 | export CDEFINE_default="__unix__" |
104 | export CDEFINE_default="__unix__" |
|
|
105 | export KERNEL_ABI=${KERNEL_ABI:-${DEFAULT_ABI}} |
| 105 | |
106 | |
| 106 | # has_multilib_profile() |
107 | # has_multilib_profile() |
| 107 | has_multilib_profile() { |
108 | has_multilib_profile() { |
| 108 | [ -n "${MULTILIB_ABIS}" -a "${MULTILIB_ABIS}" != "${MULTILIB_ABIS/ /}" ] |
109 | [ -n "${MULTILIB_ABIS}" -a "${MULTILIB_ABIS}" != "${MULTILIB_ABIS/ /}" ] |
| 109 | } |
110 | } |
| … | |
… | |
| 389 | # Ideas for this code came from debian's sparc-linux headers package. |
390 | # Ideas for this code came from debian's sparc-linux headers package. |
| 390 | # |
391 | # |
| 391 | # Example: |
392 | # Example: |
| 392 | # create_ml_includes /usr/include/asm __sparc__:/usr/include/asm-sparc __sparc64__:/usr/include/asm-sparc64 |
393 | # create_ml_includes /usr/include/asm __sparc__:/usr/include/asm-sparc __sparc64__:/usr/include/asm-sparc64 |
| 393 | # create_ml_includes /usr/include/asm __i386__:/usr/include/asm-i386 __x86_64__:/usr/include/asm-x86_64 |
394 | # create_ml_includes /usr/include/asm __i386__:/usr/include/asm-i386 __x86_64__:/usr/include/asm-x86_64 |
|
|
395 | # |
|
|
396 | # Warning: Be careful with the ordering here. The default ABI has to be the |
|
|
397 | # last, because it is always defined (by GCC) |
| 394 | create_ml_includes() { |
398 | create_ml_includes() { |
| 395 | local dest=$1 |
399 | local dest=$1 |
| 396 | shift |
400 | shift |
| 397 | local basedirs=$(create_ml_includes-listdirs "$@") |
401 | local basedirs=$(create_ml_includes-listdirs "$@") |
| 398 | |
402 | |