summaryrefslogtreecommitdiff
path: root/scripts/build/companion_libs/gmp.sh
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-02-17 22:50:49 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2010-02-17 22:50:49 (GMT)
commit2949150cbe92e9e90e9738a2b77489cb0593b5a7 (patch)
treecd4a7a01a59c6a0e5960ca9314142ef1fbf7cb8d /scripts/build/companion_libs/gmp.sh
parent77a605d48ed255d94bbe93ba17d53a2245a22a35 (diff)
complibs: hide companion libraries for target entry
The companion libraries on the target are required only for internal use by binutils and gdb. The user should not have to know about this, so hide the option.
Diffstat (limited to 'scripts/build/companion_libs/gmp.sh')
-rw-r--r--scripts/build/companion_libs/gmp.sh12
1 files changed, 8 insertions, 4 deletions
diff --git a/scripts/build/companion_libs/gmp.sh b/scripts/build/companion_libs/gmp.sh
index 351c2fa..2c27693 100644
--- a/scripts/build/companion_libs/gmp.sh
+++ b/scripts/build/companion_libs/gmp.sh
@@ -8,7 +8,7 @@ do_gmp() { :; }
do_gmp_target() { :; }
# Overide functions depending on configuration
-if [ "${CT_GMP}" = "y" ]; then
+if [ "${CT_GMP}" = "y" -o "${CT_GMP_TARGET}" = "y" ]; then
# Download GMP
do_gmp_get() {
@@ -21,6 +21,8 @@ do_gmp_extract() {
CT_Patch "gmp-${CT_GMP_VERSION}"
}
+if [ "${CT_GMP}" = "y" ]; then
+
do_gmp() {
mkdir -p "${CT_BUILD_DIR}/build-gmp"
@@ -56,7 +58,9 @@ do_gmp() {
CT_EndStep
}
-if [ "${CT_COMPLIBS_TARGET}" = "y" ]; then
+fi # CT_GMP
+
+if [ "${CT_GMP_TARGET}" = "y" ]; then
do_gmp_target() {
mkdir -p "${CT_BUILD_DIR}/build-gmp-target"
@@ -87,6 +91,6 @@ do_gmp_target() {
CT_EndStep
}
-fi # CT_COMPLIBS_TARGET == y
+fi # CT_GMP_TARGET
-fi # CT_GMP == y
+fi # CT_GMP || CT_GMP_TARGET