summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Sachau <tommy@gentoo.org>2013-09-17 13:29:19 +0000
committerThomas Sachau <tommy@gentoo.org>2013-09-17 13:29:19 +0000
commitc57db9fb0b175adfa2fc59b626510e81a2f4827c (patch)
tree8a52bab4bec8fec27c0beb814d654c1380b9b539 /eclass/multilib-build.eclass
parentStable on amd64 and x86 (diff)
downloadgentoo-2-c57db9fb0b175adfa2fc59b626510e81a2f4827c.tar.gz
gentoo-2-c57db9fb0b175adfa2fc59b626510e81a2f4827c.tar.bz2
gentoo-2-c57db9fb0b175adfa2fc59b626510e81a2f4827c.zip
Add eclass doc for multilib_build_binaries
Diffstat (limited to 'eclass/multilib-build.eclass')
-rw-r--r--eclass/multilib-build.eclass14
1 files changed, 12 insertions, 2 deletions
diff --git a/eclass/multilib-build.eclass b/eclass/multilib-build.eclass
index 683700e2685d..a042d9f431de 100644
--- a/eclass/multilib-build.eclass
+++ b/eclass/multilib-build.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/multilib-build.eclass,v 1.19 2013/09/17 12:25:50 tommy Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/multilib-build.eclass,v 1.20 2013/09/17 13:29:19 tommy Exp $
# @ECLASS: multilib-build.eclass
# @MAINTAINER:
@@ -376,6 +376,16 @@ multilib_is_native_abi() {
[[ ${ABI} == ${DEFAULT_ABI} ]]
}
+# @FUNCTION: multilib_build_binaries
+# @DESCRIPTION:
+# Determine wheter to build binaries for the current build ABI.
+# Returns true status (0) if the current built ABI is the profile
+# native or COMPLETE_MULTILIB variable is set to yes, otherwise
+# false (1).
+#
+# The COMPLETE_MULTILIB variable can be set by users or profiles
+# when they want to build binaries for none-default ABI so e.g.
+# 32bit binaries on amd64.
multilib_build_binaries() {
debug-print-function ${FUNCNAME} "${@}"
@@ -383,6 +393,6 @@ multilib_build_binaries() {
[[ ${COMPLETE_MULTILIB} == yes ]] || multilib_is_native_abi
}
-
+
_MULTILIB_BUILD=1
fi