Browse Source

glibc: fixed build of 32 Bit library on x86-64 when multilib is enabled

Note:

We need to inject proper -march while building 32 Bit ABI
user/chris/test/multilib
Christian Wiese 13 years ago
parent
commit
aecdf469c1
  1. 10
      base/glibc/glibc.conf

10
base/glibc/glibc.conf

@ -69,6 +69,16 @@ pkg_glibc_abi_preconf() {
slibdir="lib$1"
echo_status "slibdir: $slibdir"
# architecture specific compiler flags for 32bit ABIs
if [ "$1" = "32" ]; then
case "$arch" in
x86-64)
var_append CC_WRAPPER_INSERT ' ' "-march=$( cut -d- -f1 <<< $arch_target )"
var_append CXX_WRAPPER_INSERT ' ' "-march=$( cut -d- -f1 <<< $arch_target )"
;;
esac
fi
# applies to all additional ABIs while building multilib
if [ $buildloop -ge 2 ]; then
# only install libraries and no programs

Loading…
Cancel
Save