gnu: avr-libc: Fix build.
* gnu/packages/avr.scm (avr-libc): Update to 2.0.0. [native-inputs]: Use new avr-gcc and avr-binutils. [arguments]: Add phase to unset C_INCLUDE_PATH.
This commit is contained in:
parent
a17eea4ba4
commit
e60972f288
|
@ -84,17 +84,28 @@
|
||||||
"0sd9qkvhmk9av4g1f8dsjwc309hf1g0731bhvicnjb3b3d42l1n3"))))
|
"0sd9qkvhmk9av4g1f8dsjwc309hf1g0731bhvicnjb3b3d42l1n3"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:out-of-source? #t
|
'(#:out-of-source? #t
|
||||||
#:configure-flags '("--host=avr")))
|
#:configure-flags '("--host=avr")
|
||||||
|
#:phases
|
||||||
(native-inputs `(("cross-binutils" ,(cross-binutils "avr"))
|
(modify-phases %standard-phases
|
||||||
("cross-gcc" ,xgcc-avr)))
|
(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.
|
||||||
|
(unsetenv "C_INCLUDE_PATH")
|
||||||
|
#t)))))
|
||||||
|
(native-inputs `(("avr-binutils" ,avr-binutils)
|
||||||
|
("avr-gcc" ,avr-gcc-4.9)))
|
||||||
(home-page "http://www.nongnu.org/avr-libc/")
|
(home-page "http://www.nongnu.org/avr-libc/")
|
||||||
(synopsis "The AVR C Library")
|
(synopsis "The AVR C Library")
|
||||||
(description
|
(description
|
||||||
"AVR Libc is a project whose goal is to provide a high quality C library
|
"AVR Libc is a project whose goal is to provide a high quality C library
|
||||||
for use with GCC on Atmel AVR microcontrollers.")
|
for use with GCC on Atmel AVR microcontrollers.")
|
||||||
(license (license:non-copyleft "http://www.nongnu.org/avr-libc/LICENSE.txt"))))
|
(license
|
||||||
|
(license:non-copyleft "http://www.nongnu.org/avr-libc/LICENSE.txt"))))
|
||||||
|
|
||||||
|
|
||||||
(define-public microscheme
|
(define-public microscheme
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Reference in New Issue