1.1 --- a/scripts/build/libc_glibc.sh Sat Jul 26 12:26:42 2008 +0000
1.2 +++ b/scripts/build/libc_glibc.sh Thu Aug 21 09:48:00 2008 +0000
1.3 @@ -122,9 +122,10 @@
1.4 # Note: BOOTSTRAP_GCC is used by:
1.5 # patches/glibc-2.3.5/glibc-mips-bootstrap-gcc-header-install.patch
1.6
1.7 - libc_cv_ppc_machine=yes \
1.8 - CT_DoExecLog ALL \
1.9 - make CFLAGS="-O -DBOOTSTRAP_GCC" \
1.10 + libc_cv_ppc_machine=yes \
1.11 + CT_DoExecLog ALL \
1.12 + make CFLAGS="-O -DBOOTSTRAP_GCC" \
1.13 + OBJDUMP_FOR_HOST="${CT_TARGET}-objdump" \
1.14 sysdeps/gnu/errlist.c
1.15 mkdir -p stdio-common
1.16
1.17 @@ -135,12 +136,13 @@
1.18 CT_DoExecLog ALL touch stdio-common/errlist-compat.c
1.19 fi
1.20 # Note: BOOTSTRAP_GCC (see above)
1.21 - libc_cv_ppc_machine=yes \
1.22 - CT_DoExecLog ALL \
1.23 - make cross-compiling=yes \
1.24 - install_root=${CT_SYSROOT_DIR} \
1.25 - CFLAGS="-O -DBOOTSTRAP_GCC" \
1.26 - ${LIBC_SYSROOT_ARG} \
1.27 + libc_cv_ppc_machine=yes \
1.28 + CT_DoExecLog ALL \
1.29 + make cross-compiling=yes \
1.30 + install_root=${CT_SYSROOT_DIR} \
1.31 + CFLAGS="-O -DBOOTSTRAP_GCC" \
1.32 + ${LIBC_SYSROOT_ARG} \
1.33 + OBJDUMP_FOR_HOST="${CT_TARGET}-objdump" \
1.34 install-headers
1.35
1.36 # Two headers -- stubs.h and features.h -- aren't installed by install-headers,
1.37 @@ -287,7 +289,7 @@
1.38 #TODO: should check whether slibdir has been set in configparms to */lib64
1.39 # and copy the startfiles into the appropriate libdir.
1.40 CT_DoLog EXTRA "Building C library start files"
1.41 - CT_DoExecLog ALL make csu/subdir_lib
1.42 + CT_DoExecLog ALL make OBJDUMP_FOR_HOST="${CT_TARGET}-objdump" csu/subdir_lib
1.43
1.44 CT_DoLog EXTRA "Installing C library start files"
1.45 if [ "${CT_USE_SYSROOT}" = "y" ]; then
1.46 @@ -441,13 +443,15 @@
1.47 # Note: LD and RANLIB needed by glibc-2.1.3's c_stub directory, at least on macosx
1.48 # No need for PARALLELMFLAGS here, Makefile already reads this environment variable
1.49 CT_DoLog EXTRA "Building C library"
1.50 - CT_DoExecLog ALL make LD=${CT_TARGET}-ld \
1.51 - RANLIB=${CT_TARGET}-ranlib \
1.52 + CT_DoExecLog ALL make LD=${CT_TARGET}-ld \
1.53 + RANLIB=${CT_TARGET}-ranlib \
1.54 + OBJDUMP_FOR_HOST="${CT_TARGET}-objdump" \
1.55 ${GLIBC_INITIAL_BUILD_RULE}
1.56
1.57 CT_DoLog EXTRA "Installing C library"
1.58 - CT_DoExecLog ALL make install_root="${CT_SYSROOT_DIR}" \
1.59 - ${LIBC_SYSROOT_ARG} \
1.60 + CT_DoExecLog ALL make install_root="${CT_SYSROOT_DIR}" \
1.61 + ${LIBC_SYSROOT_ARG} \
1.62 + OBJDUMP_FOR_HOST="${CT_TARGET}-objdump" \
1.63 ${GLIBC_INITIAL_INSTALL_RULE}
1.64
1.65 # This doesn't seem to work when building a crosscompiler,
1.66 @@ -503,8 +507,9 @@
1.67 CT_DoLog EXTRA "Installing missing C library components"
1.68 # note: should do full install and then fix linker scripts, but this is faster
1.69 for t in bin rootsbin sbin data others; do
1.70 - CT_DoExecLog ALL make install_root="${CT_SYSROOT_DIR}" \
1.71 - ${LIBC_SYSROOT_ARG} \
1.72 + CT_DoExecLog ALL make install_root="${CT_SYSROOT_DIR}" \
1.73 + ${LIBC_SYSROOT_ARG} \
1.74 + OBJDUMP_FOR_HOST="${CT_TARGET}-objdump" \
1.75 install-${t}
1.76 done
1.77