| 1 | # Copyright 1999-2013 Gentoo Foundation |
1 | # Copyright 1999-2013 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-build.eclass,v 1.8 2013/03/04 19:30:28 mgorny Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/multilib-build.eclass,v 1.9 2013/03/04 19:31:01 mgorny Exp $ |
| 4 | |
4 | |
| 5 | # @ECLASS: multilib-build.eclass |
5 | # @ECLASS: multilib-build.eclass |
| 6 | # @MAINTAINER: |
6 | # @MAINTAINER: |
| 7 | # Michał Górny <mgorny@gentoo.org> |
7 | # Michał Górny <mgorny@gentoo.org> |
| 8 | # @BLURB: flags and utility functions for building multilib packages |
8 | # @BLURB: flags and utility functions for building multilib packages |
| … | |
… | |
| 137 | |
137 | |
| 138 | local MULTIBUILD_VARIANTS=( $(multilib_get_enabled_abis) ) |
138 | local MULTIBUILD_VARIANTS=( $(multilib_get_enabled_abis) ) |
| 139 | multibuild_parallel_foreach_variant _multilib_multibuild_wrapper "${@}" |
139 | multibuild_parallel_foreach_variant _multilib_multibuild_wrapper "${@}" |
| 140 | } |
140 | } |
| 141 | |
141 | |
|
|
142 | # @FUNCTION: multilib_for_best_abi |
|
|
143 | # @USAGE: <argv>... |
|
|
144 | # @DESCRIPTION: |
|
|
145 | # Runs the given command with setup for the 'best' (usually native) ABI. |
|
|
146 | multilib_for_best_abi() { |
|
|
147 | debug-print-function ${FUNCNAME} "${@}" |
|
|
148 | |
|
|
149 | local MULTIBUILD_VARIANTS=( $(multilib_get_enabled_abis) ) |
|
|
150 | |
|
|
151 | multibuild_for_best_variant _multilib_multibuild_wrapper "${@}" |
|
|
152 | } |
|
|
153 | |
| 142 | # @FUNCTION: multilib_check_headers |
154 | # @FUNCTION: multilib_check_headers |
| 143 | # @DESCRIPTION: |
155 | # @DESCRIPTION: |
| 144 | # Check whether the header files are consistent between ABIs. |
156 | # Check whether the header files are consistent between ABIs. |
| 145 | # |
157 | # |
| 146 | # This function needs to be called after each ABI's installation phase. |
158 | # This function needs to be called after each ABI's installation phase. |