scripts/build/gmp.sh
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat May 03 17:51:16 2008 +0000 (2008-05-03)
changeset 486 92f6149c4275
parent 468 c310ff1d697f
child 602 1968d150a34f
permissions -rw-r--r--
Some people are reposrting that ftp does not work on their network, probably due to proxies, while http does work.
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(-)
     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
     4 
     5 if [ "${CT_CC_GCC_GMP_MPFR}" = "y" ]; then
     6 
     7 do_print_filename() {
     8     echo "gmp-${CT_GMP_VERSION}"
     9 }
    10 
    11 # Download GMP
    12 do_gmp_get() {
    13     CT_GetFile "${CT_GMP_FILE}" {ftp,http}://{ftp.sunet.se/pub,ftp.gnu.org}/gnu/gmp
    14 }
    15 
    16 # Extract GMP
    17 do_gmp_extract() {
    18     CT_ExtractAndPatch "${CT_GMP_FILE}"
    19 }
    20 
    21 do_gmp() {
    22     mkdir -p "${CT_BUILD_DIR}/build-gmp"
    23     cd "${CT_BUILD_DIR}/build-gmp"
    24 
    25     CT_DoStep INFO "Installing GMP"
    26 
    27     CT_DoLog EXTRA "Configuring GMP"
    28     CFLAGS="${CT_CFLAGS_FOR_HOST}"              \
    29     "${CT_SRC_DIR}/${CT_GMP_FILE}/configure"    \
    30         --build=${CT_BUILD}                     \
    31         --host=${CT_HOST}                       \
    32         --prefix="${CT_PREFIX_DIR}"             \
    33         --disable-shared --enable-static        \
    34         --enable-fft --enable-mpbsd             2>&1 |CT_DoLog ALL
    35 
    36     CT_DoLog EXTRA "Building GMP"
    37     make ${PARALLELMFLAGS}  2>&1 |CT_DoLog ALL
    38 
    39     if [ "${CT_GMP_CHECK}" = "y" ]; then
    40         CT_DoLog EXTRA "Checking GMP"
    41         make -s check       2>&1 |CT_DoLog ALL
    42     fi
    43 
    44     CT_DoLog EXTRA "Installing GMP"
    45     make install            2>&1 |CT_DoLog ALL
    46 
    47     CT_EndStep
    48 }
    49 
    50 else # Mo GMP 
    51 
    52 do_print_filename() { :; }
    53 do_gmp_get() { :; }
    54 do_gmp_extract() { :; }
    55 do_gmp() { :; }
    56 
    57 fi