gnu: avr-libc: Unset CPATH to fix the build.

* gnu/packages/avr.scm (avr-libc)[arguments]: Unset CPATH variable.
This commit is contained in:
Ricardo Wurmus 2019-09-19 15:56:39 +02:00
parent 081f767e8c
commit 923b2b5a48
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 5 additions and 4 deletions

View File

@ -97,11 +97,12 @@
(modify-phases %standard-phases (modify-phases %standard-phases
(add-before 'unpack 'fix-cpath (add-before 'unpack 'fix-cpath
(lambda _ (lambda _
;; C_INCLUDE_PATH poses issues for cross-building, leading to ;; C_INCLUDE_PATH and CPATH pose issues for cross-building,
;; failures when building avr-libc on 64-bit systems. Simply ;; leading to failures when building avr-libc on 64-bit systems.
;; unsetting it allows the build to succeed because it doesn't ;; Simply unsetting them allows the build to succeed because it
;; try to use any of the native system's headers. ;; doesn't try to use any of the native system's headers.
(unsetenv "C_INCLUDE_PATH") (unsetenv "C_INCLUDE_PATH")
(unsetenv "CPATH")
#t))))) #t)))))
(native-inputs `(("avr-binutils" ,avr-binutils) (native-inputs `(("avr-binutils" ,avr-binutils)
("avr-gcc" ,avr-gcc))) ("avr-gcc" ,avr-gcc)))