--- trunk/core/include/multilib.sminc 2009/10/29 10:40:29 3671 +++ trunk/core/include/multilib.sminc 2009/12/27 23:16:16 4780 @@ -211,6 +211,30 @@ done } + +if [[ ! -z $(typeset -f cmake_configure) ]] +then + # rename the old one + old_cmake_configure=old$(typeset -f cmake_configure) + eval ${old_cmake_configure} +fi +cmake_configure() +{ + local abi + local abis_to_run="${MULTILIB_ABIS}" + + # respect MULTILIB_ONLY_ABI variable + [[ ! -z ${MULTILIB_ONLY_ABI} ]] && abis_to_run="${MULTILIB_ONLY_ABI}" + + local saved_SRCDIR="${SRCDIR}" + for abi in ${abis_to_run} + do + SRCDIR="${saved_SRCDIR}-${abi}" + cd ${SRCDIR} + abi-${abi} oldcmake_configure $@ || die + done +} + if [[ ! -z $(typeset -f munpack) ]] then # rename the old one