mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-20 05:17:54 +00:00
1b9a490601
Some (most) of the sites we use toretrieve tarballs have http equivallent for the ftp service. Use http as a failover. There's no solution for those sites that do not have such an http equivalent. /trunk/scripts/build/binutils.sh | 5 2 3 0 ++--- /trunk/scripts/build/libc_glibc.sh | 4 2 2 0 ++-- /trunk/scripts/build/libc_uClibc.sh | 2 1 1 0 +- /trunk/scripts/build/debug/400-ltrace.sh | 2 1 1 0 +- /trunk/scripts/build/debug/300-gdb.sh | 8 3 5 0 +++----- /trunk/scripts/build/kernel_linux.sh | 7 2 5 0 ++----- /trunk/scripts/build/cc_gcc.sh | 6 2 4 0 ++---- /trunk/scripts/build/gmp.sh | 4 1 3 0 +--- 8 files changed, 14 insertions(+), 24 deletions(-)
58 lines
1.4 KiB
Bash
58 lines
1.4 KiB
Bash
# This file adds the functions to build the GMP library
|
|
# Copyright 2008 Yann E. MORIN
|
|
# Licensed under the GPL v2. See COPYING in the root of this package
|
|
|
|
if [ "${CT_CC_GCC_GMP_MPFR}" = "y" ]; then
|
|
|
|
do_print_filename() {
|
|
echo "gmp-${CT_GMP_VERSION}"
|
|
}
|
|
|
|
# Download GMP
|
|
do_gmp_get() {
|
|
CT_GetFile "${CT_GMP_FILE}" {ftp,http}://{ftp.sunet.se/pub,ftp.gnu.org}/gnu/gmp
|
|
}
|
|
|
|
# Extract GMP
|
|
do_gmp_extract() {
|
|
CT_ExtractAndPatch "${CT_GMP_FILE}"
|
|
}
|
|
|
|
do_gmp() {
|
|
mkdir -p "${CT_BUILD_DIR}/build-gmp"
|
|
cd "${CT_BUILD_DIR}/build-gmp"
|
|
|
|
CT_DoStep INFO "Installing GMP"
|
|
|
|
CT_DoLog EXTRA "Configuring GMP"
|
|
CFLAGS="${CT_CFLAGS_FOR_HOST}" \
|
|
"${CT_SRC_DIR}/${CT_GMP_FILE}/configure" \
|
|
--build=${CT_BUILD} \
|
|
--host=${CT_HOST} \
|
|
--prefix="${CT_PREFIX_DIR}" \
|
|
--disable-shared --enable-static \
|
|
--enable-fft --enable-mpbsd 2>&1 |CT_DoLog ALL
|
|
|
|
CT_DoLog EXTRA "Building GMP"
|
|
make ${PARALLELMFLAGS} 2>&1 |CT_DoLog ALL
|
|
|
|
if [ "${CT_GMP_CHECK}" = "y" ]; then
|
|
CT_DoLog EXTRA "Checking GMP"
|
|
make -s check 2>&1 |CT_DoLog ALL
|
|
fi
|
|
|
|
CT_DoLog EXTRA "Installing GMP"
|
|
make install 2>&1 |CT_DoLog ALL
|
|
|
|
CT_EndStep
|
|
}
|
|
|
|
else # Mo GMP
|
|
|
|
do_print_filename() { :; }
|
|
do_gmp_get() { :; }
|
|
do_gmp_extract() { :; }
|
|
do_gmp() { :; }
|
|
|
|
fi
|