# HG changeset patch # User Michael Hope # Date 1318991252 -46800 # Node ID 149c33923f476a7f6027f0db536b533c404ee7d2 # Parent b5179235b925ea501f5ed2796ff57616fa8d88cb 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 [yann.morin.1998@anciens.enib.fr: split the original patch] Signed-off-by: "Yann E. MORIN" diff -r b5179235b925 -r 149c33923f47 scripts/functions --- a/scripts/functions Wed Oct 19 15:27:32 2011 +1300 +++ b/scripts/functions Wed Oct 19 15:27:32 2011 +1300 @@ -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"