1 |
# $Id$ |
# $Id$ |
2 |
# multilib abis |
# multilib abis |
3 |
|
|
4 |
|
# tell the buildsystem that we are doing a multilib build |
5 |
|
export MULTILIB_BUILD="true" |
6 |
|
|
7 |
# be verbose or nor (true|false} |
# be verbose or nor (true|false} |
8 |
: ${MULTILIB_VERBOSE="true"} |
: ${MULTILIB_VERBOSE="true"} |
9 |
|
|
105 |
echo -e "${COLBLUE}*** ${COLGREEN} EMUL_LINUX_32${COLDEFAULT}='${EMUL_LINUX_32}'" |
echo -e "${COLBLUE}*** ${COLGREEN} EMUL_LINUX_32${COLDEFAULT}='${EMUL_LINUX_32}'" |
106 |
fi |
fi |
107 |
uname(){ linux32 uname $@; } && export -f uname |
uname(){ linux32 uname $@; } && export -f uname |
108 |
ORIG_CHOST="${CHOST}" && export CHOST="i686-pc-linux-gnu" |
local orig_chost="${CHOST}" && export CHOST="i686-pc-linux-gnu" |
109 |
fi |
fi |
110 |
if [[ ${MULTILIB_VERBOSE} = true ]] |
if [[ ${MULTILIB_VERBOSE} = true ]] |
111 |
then |
then |
124 |
if [[ ${EMUL_LINUX_32} = true ]] |
if [[ ${EMUL_LINUX_32} = true ]] |
125 |
then |
then |
126 |
unset uname |
unset uname |
127 |
export CHOST="${ORIG_CHOST}" && unset ORIG_CHOST |
export CHOST="${orig_chost}" && unset orig_chost |
128 |
fi |
fi |
129 |
} |
} |
130 |
|
|
227 |
echo \${ABI} |
echo \${ABI} |
228 |
} |
} |
229 |
|
|
230 |
|
mabi-cc() |
231 |
|
{ |
232 |
|
echo "\"gcc -\${ABI}\"" |
233 |
|
} |
234 |
|
|
235 |
|
mabi-cxx() |
236 |
|
{ |
237 |
|
echo "\"g++ -\${ABI}\"" |
238 |
|
} |
239 |
|
|
240 |
|
mabi-cflags() |
241 |
|
{ |
242 |
|
echo "\"\${CFLAGS}\"" |
243 |
|
} |
244 |
|
|
245 |
|
mabi-cxxflags() |
246 |
|
{ |
247 |
|
echo "\"\${CXXFLAGS}\"" |
248 |
|
} |
249 |
|
|
250 |
|
mabi-ldflags() |
251 |
|
{ |
252 |
|
echo "\"\${LDFLAGS}\"" |
253 |
|
} |
254 |
|
|
255 |
## |
## |
256 |
# multilib compile functions |
# multilib compile functions |
257 |
## |
## |