From f74c28138688ef8dfaabaae43c63bce9366bb491 Mon Sep 17 00:00:00 2001 From: Ryan Burns Date: Fri, 19 Feb 2021 18:42:25 -0800 Subject: [PATCH] gcc: don't disable decimal-float when cross-compiling This causes some minor ugliness during stdenv bootstrap on powerpc64le using cross-compiled bootstrap tools. MPFR wants to use decimal floats by default so they have to be manually disabled in the configure flags when using cross-compiled bootstrap tools. The lineage of this particular configure flag traces back to 2010 (!) It was added in commit: 9b1d5353a951a29e33a3a137cb3d5246c1eff6a7 I've built various cross bootstrap tools and they seem to work fine, so I don't think this is needed anymore. --- pkgs/development/compilers/gcc/common/configure-flags.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/pkgs/development/compilers/gcc/common/configure-flags.nix b/pkgs/development/compilers/gcc/common/configure-flags.nix index 4bdec26fd99..110218ca1f6 100644 --- a/pkgs/development/compilers/gcc/common/configure-flags.nix +++ b/pkgs/development/compilers/gcc/common/configure-flags.nix @@ -86,7 +86,6 @@ let else if targetPlatform.isWindows then "mcf" else "single"}" "--enable-nls" - "--disable-decimal-float" # No final libdecnumber (it may work only in 386) ] ++ lib.optionals (targetPlatform.libc == "uclibc" || targetPlatform.libc == "musl") [ # libsanitizer requires netrom/netrom.h which is not # available in uclibc.