[PATCH 2 of 4] scripts: use the hardfloat option to set configure and CFLAGS
Yann E. MORIN
yann.morin.1998@anciens.enib.fr
Tue Nov 1 23:43:00 GMT 2011
# HG changeset patch
# User Michael Hope <michael.hope@linaro.org>
# Date 1320190569 -3600
# Node ID a58704d1826c77882e5723f1ae61d44c12e9ba36
# Parent 10f8a6c3847a22617bf36190e477d67aacf6a59b
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>
diff --git a/scripts/functions b/scripts/functions
--- a/scripts/functions
+++ b/scripts/functions
@@ -985,6 +985,10 @@
[ "${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"
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list