mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: avr-gcc: Fix compiler lookup paths.
* gnu/packages/avr.scm (avr-gcc-4.9): Use CROSS_C*_INCLUDE_PATH (like cross-base does). (avr-gcc-5)[source]: Apply patch "gcc-cross-environment-variables.patch".
This commit is contained in:
parent
dad3645b67
commit
2f3515f736
1 changed files with 14 additions and 2 deletions
|
@ -63,7 +63,16 @@ (define-public avr-gcc-4.9
|
||||||
`(delete "--disable-multilib" ,flags))))
|
`(delete "--disable-multilib" ,flags))))
|
||||||
(native-search-paths
|
(native-search-paths
|
||||||
(list (search-path-specification
|
(list (search-path-specification
|
||||||
(variable "CROSS_CPATH")
|
(variable "CROSS_C_INCLUDE_PATH")
|
||||||
|
(files '("avr/include")))
|
||||||
|
(search-path-specification
|
||||||
|
(variable "CROSS_CPLUS_INCLUDE_PATH")
|
||||||
|
(files '("avr/include")))
|
||||||
|
(search-path-specification
|
||||||
|
(variable "CROSS_OBJC_INCLUDE_PATH")
|
||||||
|
(files '("avr/include")))
|
||||||
|
(search-path-specification
|
||||||
|
(variable "CROSS_OBJCPLUS_INCLUDE_PATH")
|
||||||
(files '("avr/include")))
|
(files '("avr/include")))
|
||||||
(search-path-specification
|
(search-path-specification
|
||||||
(variable "CROSS_LIBRARY_PATH")
|
(variable "CROSS_LIBRARY_PATH")
|
||||||
|
@ -76,7 +85,10 @@ (define-public avr-gcc-5
|
||||||
(package
|
(package
|
||||||
(inherit avr-gcc-4.9)
|
(inherit avr-gcc-4.9)
|
||||||
(version (package-version gcc-5))
|
(version (package-version gcc-5))
|
||||||
(source (package-source gcc-5))))
|
(source (origin
|
||||||
|
(inherit (package-source gcc-5))
|
||||||
|
(patches (append (origin-patches (package-source gcc-5))
|
||||||
|
(search-patches "gcc-cross-environment-variables.patch")))))))
|
||||||
|
|
||||||
(define (avr-libc avr-gcc)
|
(define (avr-libc avr-gcc)
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Reference in a new issue