diff options
author | Matthew Bauer <mjbauer95@gmail.com> | 2019-09-20 22:37:00 -0400 |
---|---|---|
committer | Matthew Bauer <mjbauer95@gmail.com> | 2019-09-20 22:37:00 -0400 |
commit | 7b58739e2c193b984d1352041863d2f3935694d7 (patch) | |
tree | 60f8b00bbdcc3fc38e1bc1b0ac944da508ae8e14 /pkgs/development/compilers/gcc/9 | |
parent | 312d4cb545c733af2a61d9073f6f17fe8ab418d4 (diff) |
gcc: fix mising avr limits.h
Fixes #69172
Diffstat (limited to 'pkgs/development/compilers/gcc/9')
-rw-r--r-- | pkgs/development/compilers/gcc/9/default.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/development/compilers/gcc/9/default.nix b/pkgs/development/compilers/gcc/9/default.nix index 506cfee7f498..de4d893b99e2 100644 --- a/pkgs/development/compilers/gcc/9/default.nix +++ b/pkgs/development/compilers/gcc/9/default.nix @@ -185,7 +185,12 @@ stdenv.mkDerivation ({ sed -i gcc/config/linux.h -e '1i#undef LOCAL_INCLUDE_DIR' '' ) - else ""); + else "") + + stdenv.lib.optionalString targetPlatform.isAvr '' + makeFlagsArray+=( + 'LIMITS_H_TEST=false' + ) + ''; inherit noSysDirs staticCompiler crossStageStatic libcCross crossMingw; |