We've been so far inlining the snippet into ebuilds. This meant that some people didn't know how to do this, some more did it improperly and in the end -- if it failed not good enough -- changing it will require changing all the ebuilds. --- gx86/eclass/multilib-build.eclass | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
diff --git a/gx86/eclass/multilib-build.eclass b/gx86/eclass/multilib-build.eclass index a4b7c01..22a471e 100644 --- a/gx86/eclass/multilib-build.eclass +++ b/gx86/eclass/multilib-build.eclass @@ -338,5 +338,21 @@ multilib_install_wrappers() { fi } +# @FUNCTION: multilib_is_native_abi +# @DESCRIPTION: +# Determine whether the currently built ABI is the profile native. +# Return true status (0) if that is true, otherwise false (1). +# +# This is often useful for configure calls when some of the options are +# supposed to be disabled for multilib ABIs (like those used for +# executables only). +multilib_is_native_abi() { + debug-print-function ${FUNCNAME} "${@}" + + [[ ${#} -eq 0 ]] || die "${FUNCNAME}: too many arguments" + + [[ ${ABI} == ${DEFAULT_ABI} ]] +} + _MULTILIB_BUILD=1 fi -- 1.8.2.1