--- trunk/include/multilib.sminc 2012/03/12 18:32:58 11531 +++ trunk/include/multilib.sminc 2012/10/11 10:32:43 13526 @@ -1,6 +1,9 @@ # $Id$ # multilib abis +# tell the buildsystem that we are doing a multilib build +export MULTILIB_BUILD="true" + # be verbose or nor (true|false} : ${MULTILIB_VERBOSE="true"} @@ -102,7 +105,7 @@ echo -e "${COLBLUE}*** ${COLGREEN} EMUL_LINUX_32${COLDEFAULT}='${EMUL_LINUX_32}'" fi uname(){ linux32 uname $@; } && export -f uname - ORIG_CHOST="${CHOST}" && export CHOST="i686-pc-linux-gnu" + local orig_chost="${CHOST}" && export CHOST="i686-pc-linux-gnu" fi if [[ ${MULTILIB_VERBOSE} = true ]] then @@ -121,7 +124,7 @@ if [[ ${EMUL_LINUX_32} = true ]] then unset uname - export CHOST="${ORIG_CHOST}" && unset ORIG_CHOST + export CHOST="${orig_chost}" && unset orig_chost fi } @@ -224,6 +227,31 @@ echo \${ABI} } +mabi-cc() +{ + echo "\"gcc -\${ABI}\"" +} + +mabi-cxx() +{ + echo "\"g++ -\${ABI}\"" +} + +mabi-cflags() +{ + echo "\"\${CFLAGS}\"" +} + +mabi-cxxflags() +{ + echo "\"\${CXXFLAGS}\"" +} + +mabi-ldflags() +{ + echo "\"\${LDFLAGS}\"" +} + ## # multilib compile functions ## @@ -291,7 +319,7 @@ for abi in ${abis_to_run} do echo -e "${COLBLUE}*** ${COLGREEN}unpacking for ABI -${abi}${COLDEFAULT}" - oldmunpack ${SRCFILE} || die + oldmunpack $@ || die mv ${SRCDIR} ${SRCDIR}-${abi} || die done } @@ -450,7 +478,7 @@ ## multilib_src_prepare() { - munpack + munpack ${SRCFILE} } multilib_src_compile()