aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/avr.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2019-10-08 11:23:22 +0200
committerLudovic Courtès <ludo@gnu.org>2019-10-08 11:37:07 +0200
commitcf3d1763ede1a329c2bc932c84591ab594bb6c96 (patch)
tree665f92418f8671474de3815241fb657384463c94 /gnu/packages/avr.scm
parentd57660c54907cc6fba8b0adf6295fd2311ada6cf (diff)
parent2fa55c72476c73211cbb2d6b29c05a1ad58a6cf9 (diff)
downloadguix-cf3d1763ede1a329c2bc932c84591ab594bb6c96.tar
guix-cf3d1763ede1a329c2bc932c84591ab594bb6c96.tar.gz
Merge branch 'core-updates'
Diffstat (limited to 'gnu/packages/avr.scm')
-rw-r--r--gnu/packages/avr.scm14
1 files changed, 9 insertions, 5 deletions
diff --git a/gnu/packages/avr.scm b/gnu/packages/avr.scm
index eaa3c7d046..1f99f636e0 100644
--- a/gnu/packages/avr.scm
+++ b/gnu/packages/avr.scm
@@ -67,7 +67,10 @@
(files '("avr/include")))
(search-path-specification
(variable "CROSS_LIBRARY_PATH")
- (files '("avr/lib"))))))))
+ (files '("avr/lib")))))
+ (native-inputs
+ `(("gcc" ,gcc-5)
+ ,@(package-native-inputs xgcc))))))
(define-public avr-gcc-5
(package
@@ -94,11 +97,12 @@
(modify-phases %standard-phases
(add-before 'unpack 'fix-cpath
(lambda _
- ;; C_INCLUDE_PATH poses issues for cross-building, leading to
- ;; failures when building avr-libc on 64-bit systems. Simply
- ;; unsetting it allows the build to succeed because it doesn't
- ;; try to use any of the native system's headers.
+ ;; C_INCLUDE_PATH and CPATH pose issues for cross-building,
+ ;; leading to failures when building avr-libc on 64-bit systems.
+ ;; Simply unsetting them allows the build to succeed because it
+ ;; doesn't try to use any of the native system's headers.
(unsetenv "C_INCLUDE_PATH")
+ (unsetenv "CPATH")
#t)))))
(native-inputs `(("avr-binutils" ,avr-binutils)
("avr-gcc" ,avr-gcc)))