aboutsummaryrefslogtreecommitdiff
path: root/scripts/functions
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2011-10-19 15:27:32 +1300
committerMichael Hope <michael.hope@linaro.org>2011-10-19 15:27:32 +1300
commit67ede2f5d46768a97359f6f4ab345c76e726b2d8 (patch)
treec060d8b585db5b0ad43be1d5417fe3a64046d93d /scripts/functions
parent28e54116c34116cbecae0533366bce6b2b55f96e (diff)
downloadcrosstool-ng-67ede2f5d46768a97359f6f4ab345c76e726b2d8.tar.gz
crosstool-ng-67ede2f5d46768a97359f6f4ab345c76e726b2d8.tar.bz2
crosstool-ng-67ede2f5d46768a97359f6f4ab345c76e726b2d8.zip
scripts: use the hardfloat option to set configure and CFLAGS
When hardfloat is selected, we need to pass that selection down to ./configure and in the CFLAGS. Signed-off-by: Michael Hope <michael.hope@linaro.org> [yann.morin.1998@anciens.enib.fr: split the original patch] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Diffstat (limited to 'scripts/functions')
-rw-r--r--scripts/functions4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/functions b/scripts/functions
index 69becf81..f4b19ca1 100644
--- a/scripts/functions
+++ b/scripts/functions
@@ -985,6 +985,10 @@ CT_DoBuildTargetTuple() {
[ "${CT_ARCH_FPU}" ] && { CT_ARCH_FPU_CFLAG="-mfpu=${CT_ARCH_FPU}"; CT_ARCH_WITH_FPU="--with-fpu=${CT_ARCH_FPU}"; }
case "${CT_ARCH_FLOAT}" in
+ hard)
+ CT_ARCH_FLOAT_CFLAG="-mhard-float"
+ CT_ARCH_WITH_FLOAT="--with-float=hard"
+ ;;
soft)
CT_ARCH_FLOAT_CFLAG="-msoft-float"
CT_ARCH_WITH_FLOAT="--with-float=soft"