about summary refs log tree commit diff
path: root/pkgs/development/misc
diff options
context:
space:
mode:
authorpennae <github@quasiparticle.net>2023-03-10 07:26:28 +0100
committerEmily Trau <emily@downunderctf.com>2023-12-03 21:44:27 +1100
commitb2844f89d10d4a2665aed231144950c354f275a6 (patch)
treee0ed5ee72328a435607944c3c87b8e2c2dc34456 /pkgs/development/misc
parent574d1e47ea9fa29f6a6ad3f2222d982aa48af940 (diff)
avrlibc: hook up libdir for cc-wrapper
-B must be set to the root directory of avrlibc, otherwise gcc cannot
locate crt objects for some attiny devices. -L trains as set by
bintools-wrapper are not necessary with -B set correctly because gcc
takes care of that, and likewise we can drop the -B train from
cc-wrapper because the one spec is enough.
Diffstat (limited to 'pkgs/development/misc')
-rw-r--r--pkgs/development/misc/avr/libc/default.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkgs/development/misc/avr/libc/default.nix b/pkgs/development/misc/avr/libc/default.nix
index 9b3ac75d11046..d7e9f0efe9992 100644
--- a/pkgs/development/misc/avr/libc/default.nix
+++ b/pkgs/development/misc/avr/libc/default.nix
@@ -19,6 +19,7 @@ stdenv.mkDerivation rec {
 
   passthru = {
     incdir = "/avr/include";
+    libdir = "/avr/lib";
   };
 
   meta = with lib; {