98 |
fi |
fi |
99 |
|
|
100 |
# configure a linux32 emulated build |
# configure a linux32 emulated build |
101 |
|
local linux32 |
102 |
if [[ ${EMUL_LINUX_32} = true ]] |
if [[ ${EMUL_LINUX_32} = true ]] |
103 |
then |
then |
104 |
if [[ ${MULTILIB_VERBOSE} = true ]] |
if [[ ${MULTILIB_VERBOSE} = true ]] |
107 |
fi |
fi |
108 |
uname(){ linux32 uname $@; } && export -f uname |
uname(){ linux32 uname $@; } && export -f uname |
109 |
local orig_chost="${CHOST}" && export CHOST="i686-pc-linux-gnu" |
local orig_chost="${CHOST}" && export CHOST="i686-pc-linux-gnu" |
110 |
|
linux32="linux32" |
111 |
fi |
fi |
112 |
if [[ ${MULTILIB_VERBOSE} = true ]] |
if [[ ${MULTILIB_VERBOSE} = true ]] |
113 |
then |
then |
115 |
fi |
fi |
116 |
|
|
117 |
# run any given command |
# run any given command |
118 |
eval $@ || die |
eval ${linux32} $@ || die |
119 |
|
|
120 |
unset ABI CC CXX ABI_LIBDIR |
unset ABI CC CXX ABI_LIBDIR |
121 |
# keep pkgconfig clean |
# keep pkgconfig clean |
127 |
then |
then |
128 |
unset uname |
unset uname |
129 |
export CHOST="${orig_chost}" && unset orig_chost |
export CHOST="${orig_chost}" && unset orig_chost |
130 |
|
unset linux32 |
131 |
fi |
fi |
132 |
} |
} |
133 |
|
|
322 |
for abi in ${abis_to_run} |
for abi in ${abis_to_run} |
323 |
do |
do |
324 |
echo -e "${COLBLUE}*** ${COLGREEN}unpacking for ABI -${abi}${COLDEFAULT}" |
echo -e "${COLBLUE}*** ${COLGREEN}unpacking for ABI -${abi}${COLDEFAULT}" |
325 |
oldmunpack ${SRCFILE} || die |
oldmunpack $@ || die |
326 |
mv ${SRCDIR} ${SRCDIR}-${abi} || die |
mv ${SRCDIR} ${SRCDIR}-${abi} || die |
327 |
done |
done |
328 |
} |
} |
481 |
## |
## |
482 |
multilib_src_prepare() |
multilib_src_prepare() |
483 |
{ |
{ |
484 |
munpack |
munpack ${SRCFILE} |
485 |
} |
} |
486 |
|
|
487 |
multilib_src_compile() |
multilib_src_compile() |