Bart De VOS pointed out that removing absolute paths from the libc linker scripts is plainly wrong.
It dates from dawn ages of the original crosstool code, and is not well explained. At that time, binutils might not understand the sysroot stuff, and it was necessary to remove absolute paths in that case.
/trunk/scripts/build/libc/glibc.sh | 14 2 12 0 ++------------
1 file changed, 2 insertions(+), 12 deletions(-)
1 # This file adds the functions to build the GMP library
2 # Copyright 2008 Yann E. MORIN
3 # Licensed under the GPL v2. See COPYING in the root of this package
5 do_print_filename() { :; }
7 do_gmp_extract() { :; }
11 # Overide functions depending on configuration
12 if [ "${CT_GMP_MPFR}" = "y" ]; then
15 [ "${CT_GMP_MPFR}" = "y" ] || return 0
16 echo "gmp-${CT_GMP_VERSION}"
21 CT_GetFile "${CT_GMP_FILE}" {ftp,http}://{ftp.sunet.se/pub,ftp.gnu.org}/gnu/gmp
26 CT_ExtractAndPatch "${CT_GMP_FILE}"
30 mkdir -p "${CT_BUILD_DIR}/build-gmp"
31 cd "${CT_BUILD_DIR}/build-gmp"
33 CT_DoStep INFO "Installing GMP"
35 CT_DoLog EXTRA "Configuring GMP"
36 CFLAGS="${CT_CFLAGS_FOR_HOST}" \
38 "${CT_SRC_DIR}/${CT_GMP_FILE}/configure" \
41 --prefix="${CT_PREFIX_DIR}" \
42 --disable-shared --enable-static \
43 --enable-fft --enable-mpbsd
45 CT_DoLog EXTRA "Building GMP"
46 CT_DoExecLog ALL make ${PARALLELMFLAGS}
48 if [ "${CT_GMP_CHECK}" = "y" ]; then
49 CT_DoLog EXTRA "Checking GMP"
50 CT_DoExecLog ALL make ${PARALLELMFLAGS} -s check
53 CT_DoLog EXTRA "Installing GMP"
54 CT_DoExecLog ALL make install
59 if [ "${CT_GMP_MPFR_TARGET}" = "y" ]; then
62 mkdir -p "${CT_BUILD_DIR}/build-gmp-target"
63 cd "${CT_BUILD_DIR}/build-gmp-target"
65 CT_DoStep INFO "Installing GMP for the target"
67 CT_DoLog EXTRA "Configuring GMP"
68 CFLAGS="${CT_CFLAGS_FOR_TARGET}" \
70 "${CT_SRC_DIR}/${CT_GMP_FILE}/configure" \
74 --disable-shared --enable-static \
75 --enable-fft --enable-mpbsd
77 CT_DoLog EXTRA "Building GMP"
78 CT_DoExecLog ALL make ${PARALLELMFLAGS}
80 # Not possible to check MPFR while X-compiling
82 CT_DoLog EXTRA "Installing GMP"
83 CT_DoExecLog ALL make DESTDIR="${CT_SYSROOT_DIR}" install
88 fi # CT_GMP_MPFR_TARGET == y