aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@dabbelt.com>2016-04-04 13:48:13 -0700
committerPalmer Dabbelt <palmer@dabbelt.com>2016-04-05 22:00:30 -0700
commit5845f9d18635ce6e78132667013b63f5b202ce47 (patch)
treec8da88044f1f6b1f036fdd13f0688f8752837610 /configure
parentacfa4804d96c8d7a30e53b01e5da9ab08244ecc7 (diff)
downloadriscv-gnu-toolchain-5845f9d18635ce6e78132667013b63f5b202ce47.zip
riscv-gnu-toolchain-5845f9d18635ce6e78132667013b63f5b202ce47.tar.gz
riscv-gnu-toolchain-5845f9d18635ce6e78132667013b63f5b202ce47.tar.bz2
Start passing "--enable-soft-float"-like arguments
It's no longer the case that building the toolchain with "--disable-float" turns off floating-point by default. This passes the correct arguments to all the various sub-configures in order to ask for floating-point support to be either enabled or disabled.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure12
1 files changed, 10 insertions, 2 deletions
diff --git a/configure b/configure
index c323c3a..3eb5490 100755
--- a/configure
+++ b/configure
@@ -585,7 +585,9 @@ PACKAGE_URL=''
ac_subst_vars='LTLIBOBJS
LIBOBJS
multilib_flags
-glibc_configure_flags
+glibc_float_flags
+gcc_float_flags
+binutils_float_flags
float_asflags
float_cflags
atomic_cflags
@@ -3184,11 +3186,17 @@ fi
if test "x$enable_float" != xno; then :
+ float_cflags=-mhard-float
+float_asflags=-mhard-float
+binutils_float_flags=--disable-soft-float
+gcc_float_flags="--disable-soft-float --with-float=hard"
else
float_cflags=-msoft-float
float_asflags=-msoft-float
-glibc_configure_flags=--without-fp
+binutils_float_flags=--enable-soft-float
+gcc_float_flags="--enable-soft-float --with-float=soft"
+glibc_float_flags=--without-fp
fi