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
tc-work-wip
Christian Wiese 13 years ago
committed by Alejandro Mery
parent
commit
e4dfe199dd
1 changed files with 10 additions and 0 deletions
  1. +10
    -0
      base/glibc/glibc.conf

+ 10
- 0
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=$(echo $arch_target | cut -d- -f1)"
var_append CXX_WRAPPER_INSERT ' ' "-march=$(echo $arch_target | cut -d- -f1)"
;;
esac
fi
# applies to all additional ABIs while building multilib
if [ $buildloop -ge 2 ]; then
# only install libraries and no programs

Loading…
Cancel
Save