diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-04-30 16:38:06 +0000 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-04-30 16:38:06 +0000 |
commit | 886c3e7c8bba9833d052f6d88aa4b7fd929845c1 (patch) | |
tree | a43f4f256b0b4d130f5207340b535ab3803ae03f | |
parent | 396e68116cc6e7a6ad08ad861e990dfdb3799ceb (diff) | |
download | crosstool-ng-886c3e7c8bba9833d052f6d88aa4b7fd929845c1.tar.gz crosstool-ng-886c3e7c8bba9833d052f6d88aa4b7fd929845c1.tar.bz2 crosstool-ng-886c3e7c8bba9833d052f6d88aa4b7fd929845c1.zip |
Do not try to download, extract, or build GMP and MPFR if not asked for.
/trunk/scripts/build/gmp.sh | 12 11 1 0 +++++++++++-
/trunk/scripts/build/mpfr.sh | 11 11 0 0 +++++++++++
2 files changed, 22 insertions(+), 1 deletion(-)
-rw-r--r-- | scripts/build/gmp.sh | 12 | ||||
-rw-r--r-- | scripts/build/mpfr.sh | 11 |
2 files changed, 22 insertions, 1 deletions
diff --git a/scripts/build/gmp.sh b/scripts/build/gmp.sh index cc84d64f..7cc2a859 100644 --- a/scripts/build/gmp.sh +++ b/scripts/build/gmp.sh @@ -2,8 +2,9 @@ # 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() { - [ "${CT_CC_GCC_GMP_MPFR}" = "y" ] || return 0 echo "gmp-${CT_GMP_VERSION}" } @@ -47,3 +48,12 @@ do_gmp() { CT_EndStep } + +else # Mo GMP + +do_print_filename() { :; } +do_gmp_get() { :; } +do_gmp_extract() { :; } +do_gmp() { :; } + +fi diff --git a/scripts/build/mpfr.sh b/scripts/build/mpfr.sh index 810fa60b..aca5039d 100644 --- a/scripts/build/mpfr.sh +++ b/scripts/build/mpfr.sh @@ -2,6 +2,8 @@ # 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() { [ "${CT_CC_GCC_GMP_MPFR}" = "y" ] || return 0 echo "mpfr-${CT_MPFR_VERSION}" @@ -45,3 +47,12 @@ do_mpfr() { CT_EndStep } + +else # No MPFR + +do_print_filename() { :; } +do_mpfr_get() { :; } +do_mpfr_extract() { :; } +do_mpfr() { :; } + +fi |