1 |
# $Header: /magellan-cvs/smage/include/multilib.sminc,v 1.33 2007-11-13 15:49:09 niro Exp $ |
# $Id$ |
2 |
# multilib abis |
# multilib abis |
3 |
|
|
4 |
# do not define EMUL_LINUX_32 after inherit of multlib !! |
# do not define EMUL_LINUX_32 after inherit of multlib !! |
65 |
then |
then |
66 |
export LDFLAGS="-L/${ABI_LIBDIR} -L/usr/${ABI_LIBDIR}" |
export LDFLAGS="-L/${ABI_LIBDIR} -L/usr/${ABI_LIBDIR}" |
67 |
fi |
fi |
68 |
export PKG_CONFIG_PATH="/usr/${ABI_LIBDIR}/pkgconfig" |
# keep pkgconfig clean |
69 |
|
local orig_pkg_config_path="${PKG_CONFIG_PATH}" |
70 |
|
export PKG_CONFIG_PATH="/usr/${ABI_LIBDIR}/pkgconfig:${PKG_CONFIG_PATH}" |
71 |
|
|
72 |
echo -e "${COLBLUE}*** ${COLGREEN}running with -${ABI} ABI${COLDEFAULT}" |
echo -e "${COLBLUE}*** ${COLGREEN}running with -${ABI} ABI${COLDEFAULT}" |
73 |
echo -e "${COLBLUE}*** ${COLGREEN} ABI${COLDEFAULT}='${ABI}'" |
echo -e "${COLBLUE}*** ${COLGREEN} ABI${COLDEFAULT}='${ABI}'" |
94 |
# run any given command |
# run any given command |
95 |
eval $@ || die |
eval $@ || die |
96 |
|
|
97 |
unset ABI CC CXX ABI_LIBDIR LDFLAGS PKG_CONFIG_PATH |
unset ABI CC CXX ABI_LIBDIR LDFLAGS |
98 |
|
# keep pkgconfig clean |
99 |
|
export PKG_CONFIG_PATH="${orig_pkg_config_path}" |
100 |
|
|
101 |
# restore original settings |
# restore original settings |
102 |
if [[ ${EMUL_LINUX_32} = true ]] |
if [[ ${EMUL_LINUX_32} = true ]] |
116 |
then |
then |
117 |
export LDFLAGS="-L/${ABI_LIBDIR} -L/usr/${ABI_LIBDIR}" |
export LDFLAGS="-L/${ABI_LIBDIR} -L/usr/${ABI_LIBDIR}" |
118 |
fi |
fi |
119 |
export PKG_CONFIG_PATH="/usr/${ABI_LIBDIR}/pkgconfig" |
# keep pkgconfig clean |
120 |
|
local orig_pkg_config_path="${PKG_CONFIG_PATH}" |
121 |
|
export PKG_CONFIG_PATH="/usr/${ABI_LIBDIR}/pkgconfig:${PKG_CONFIG_PATH}" |
122 |
|
|
123 |
echo -e "${COLBLUE}*** ${COLGREEN}running with -${ABI} ABI${COLDEFAULT}" |
echo -e "${COLBLUE}*** ${COLGREEN}running with -${ABI} ABI${COLDEFAULT}" |
124 |
echo -e "${COLBLUE}*** ${COLGREEN} ABI${COLDEFAULT}='${ABI}'" |
echo -e "${COLBLUE}*** ${COLGREEN} ABI${COLDEFAULT}='${ABI}'" |
137 |
# run any given command |
# run any given command |
138 |
eval $@ || die |
eval $@ || die |
139 |
|
|
140 |
unset ABI CC CXX ABI_LIBDIR LDFLAGS PKG_CONFIG_PATH |
unset ABI CC CXX ABI_LIBDIR LDFLAGS |
141 |
|
# keep pkgconfig clean |
142 |
|
export PKG_CONFIG_PATH="${orig_pkg_config_path}" |
143 |
} |
} |
144 |
|
|
145 |
only-m32() |
only-m32() |
194 |
done |
done |
195 |
} |
} |
196 |
|
|
197 |
|
mabi() |
198 |
|
{ |
199 |
|
echo \${ABI} |
200 |
|
} |
201 |
|
|
202 |
## |
## |
203 |
# multilib compile functions |
# multilib compile functions |
204 |
## |
## |
207 |
then |
then |
208 |
# rename the old one |
# rename the old one |
209 |
old_mconfigure=old$(typeset -f mconfigure) |
old_mconfigure=old$(typeset -f mconfigure) |
210 |
eval ${old_mconfigure} |
eval "${old_mconfigure}" |
211 |
fi |
fi |
212 |
mconfigure() |
mconfigure() |
213 |
{ |
{ |
224 |
done |
done |
225 |
} |
} |
226 |
|
|
|
|
|
227 |
if [[ ! -z $(typeset -f cmake_configure) ]] |
if [[ ! -z $(typeset -f cmake_configure) ]] |
228 |
then |
then |
229 |
# rename the old one |
# rename the old one |
230 |
old_cmake_configure=old$(typeset -f cmake_configure) |
old_cmake_configure=old$(typeset -f cmake_configure) |
231 |
eval ${old_cmake_configure} |
eval "${old_cmake_configure}" |
232 |
fi |
fi |
233 |
cmake_configure() |
cmake_configure() |
234 |
{ |
{ |