mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
gnu: avr-libc: Unset CPATH to fix the build.
* gnu/packages/avr.scm (avr-libc)[arguments]: Unset CPATH variable.
This commit is contained in:
parent
081f767e8c
commit
923b2b5a48
1 changed files with 5 additions and 4 deletions
|
@ -97,11 +97,12 @@ (define (avr-libc avr-gcc)
|
|||
(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)))
|
||||
|
|
Loading…
Reference in a new issue