scripts/build/companion_libs/mpfr.sh
changeset 2099 1bb063c8a0ca
parent 1905 f819ad7335e2
child 2154 250cdcc86441
     1.1 --- a/scripts/build/companion_libs/mpfr.sh	Tue Apr 13 00:43:22 2010 +0200
     1.2 +++ b/scripts/build/companion_libs/mpfr.sh	Mon Aug 23 23:18:49 2010 +0200
     1.3 @@ -5,10 +5,9 @@
     1.4  do_mpfr_get() { :; }
     1.5  do_mpfr_extract() { :; }
     1.6  do_mpfr() { :; }
     1.7 -do_mpfr_target() { :; }
     1.8  
     1.9  # Overide function depending on configuration
    1.10 -if [ "${CT_MPFR}" = "y" -o "${CT_MPFR_TARGET}" = "y" ]; then
    1.11 +if [ "${CT_MPFR}" = "y" ]; then
    1.12  
    1.13  # Download MPFR
    1.14  do_mpfr_get() {
    1.15 @@ -64,8 +63,6 @@
    1.16      esac
    1.17  }
    1.18  
    1.19 -if [ "${CT_MPFR}" = "y" ]; then
    1.20 -
    1.21  do_mpfr() {
    1.22      local -a mpfr_opts
    1.23  
    1.24 @@ -114,46 +111,3 @@
    1.25  }
    1.26  
    1.27  fi # CT_MPFR
    1.28 -
    1.29 -if [ "${CT_MPFR_TARGET}" = "y" ]; then
    1.30 -
    1.31 -do_mpfr_target() {
    1.32 -    mkdir -p "${CT_BUILD_DIR}/build-mpfr-target"
    1.33 -    cd "${CT_BUILD_DIR}/build-mpfr-target"
    1.34 -
    1.35 -    CT_DoStep INFO "Installing MPFR for the target"
    1.36 -
    1.37 -    mpfr_opt=
    1.38 -    # Under Cygwin, we can't build a thread-safe library
    1.39 -    case "${CT_TARGET}" in
    1.40 -        *-cygwin)   mpfr_opt="--disable-thread-safe";;
    1.41 -        *)          mpfr_opt="--enable-thread-safe";;
    1.42 -    esac
    1.43 -
    1.44 -    CT_DoLog EXTRA "Configuring MPFR"
    1.45 -    CC="${CT_TARGET}-gcc"                               \
    1.46 -    CFLAGS="${CT_CFLAGS_FOR_TARGET}"                    \
    1.47 -    CT_DoExecLog ALL                                    \
    1.48 -    "${CT_SRC_DIR}/mpfr-${CT_MPFR_VERSION}/configure"   \
    1.49 -        --build=${CT_BUILD}                             \
    1.50 -        --host=${CT_TARGET}                             \
    1.51 -        --prefix=/usr                                   \
    1.52 -        ${mpfr_opt}                                     \
    1.53 -        --disable-shared                                \
    1.54 -        --enable-static                                 \
    1.55 -        --with-gmp="${CT_SYSROOT_DIR}/usr"
    1.56 -
    1.57 -    CT_DoLog EXTRA "Building MPFR"
    1.58 -    CT_DoExecLog ALL make ${PARALLELMFLAGS}
    1.59 -
    1.60 -    # Not possible to check MPFR while X-compiling
    1.61 -
    1.62 -    CT_DoLog EXTRA "Installing MPFR"
    1.63 -    CT_DoExecLog ALL make DESTDIR="${CT_SYSROOT_DIR}" install
    1.64 -
    1.65 -    CT_EndStep
    1.66 -}
    1.67 -
    1.68 -fi # CT_MPFR_TARGET
    1.69 -
    1.70 -fi # CT_MPFR || CT_MPFR_TARGET