summary refs log tree commit diff
path: root/pkgs/development/misc/avr
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2018-10-15 16:11:20 -0500
committerMatthew Bauer <mjbauer95@gmail.com>2018-10-29 14:34:09 -0500
commit412093994b9a4fe0fa7da99d1947effc85d9070b (patch)
tree7be2219ecb1781b707672adf9274e6b5e11c1979 /pkgs/development/misc/avr
parent72e3b2a6629dbe12f184ed0156d9c34af271e158 (diff)
downloadnixpkgs-412093994b9a4fe0fa7da99d1947effc85d9070b.tar
nixpkgs-412093994b9a4fe0fa7da99d1947effc85d9070b.tar.gz
nixpkgs-412093994b9a4fe0fa7da99d1947effc85d9070b.tar.bz2
nixpkgs-412093994b9a4fe0fa7da99d1947effc85d9070b.tar.lz
nixpkgs-412093994b9a4fe0fa7da99d1947effc85d9070b.tar.xz
nixpkgs-412093994b9a4fe0fa7da99d1947effc85d9070b.tar.zst
nixpkgs-412093994b9a4fe0fa7da99d1947effc85d9070b.zip
gcc: support avr
- respect libc’s incdir and libdir
- make non-unix systems single threaded
- set LIMITS_H_TEST to false for avr
- misc updates to support new libc’s
- use multilib with avr

For threads we want to use:
- posix on unix systems
- win32 on windows
- single on everything else

For avr:
- add library directories for avrlibc
- to disable relro and bind
- avr5 should have precedence over avr3 - otherwise gcc uses the wrong one
Diffstat (limited to 'pkgs/development/misc/avr')
-rw-r--r--pkgs/development/misc/avr/libc/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/development/misc/avr/libc/default.nix b/pkgs/development/misc/avr/libc/default.nix
index 9bfffe7b2fe..afe30e4b5ee 100644
--- a/pkgs/development/misc/avr/libc/default.nix
+++ b/pkgs/development/misc/avr/libc/default.nix
@@ -14,9 +14,13 @@ stdenv.mkDerivation {
   nativeBuildInputs = [ automake autoconf ];
 
   # Make sure we don't strip the libraries in lib/gcc/avr.
-  stripDebugList= "bin";
+  stripDebugList = "bin";
   dontPatchELF = true;
 
+  passthru = {
+    incdir = "/avr/include";
+  };
+
   meta = with stdenv.lib; {
     description = "a C runtime library for AVR microcontrollers";
     homepage = http://savannah.nongnu.org/projects/avr-libc/;