Browse Source

glibc: Check that 'cross.float' is defined

Because if we define it, then gcc compilation fails because it doesn't
support --with-float for aarch64.
nixos-19.03
Tuomas Tynkkynen 7 years ago
parent
commit
41fd1ed903
  1. 2
      pkgs/development/libraries/glibc/common.nix

2
pkgs/development/libraries/glibc/common.nix

@ -93,7 +93,7 @@ stdenv.mkDerivation ({
"--enable-kernel=2.6.32"
] ++ lib.optionals (cross != null) [
(if cross.withTLS then "--with-tls" else "--without-tls")
(if cross.float == "soft" then "--without-fp" else "--with-fp")
(if cross ? float && cross.float == "soft" then "--without-fp" else "--with-fp")
] ++ lib.optionals (cross != null
&& cross.platform ? kernelMajor
&& cross.platform.kernelMajor == "2.6") [

Loading…
Cancel
Save