[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#24416: [PATCH] gnu: avr-gcc: Fix compiler lookup paths.
From: |
Danny Milosavljevic |
Subject: |
bug#24416: [PATCH] gnu: avr-gcc: Fix compiler lookup paths. |
Date: |
Fri, 22 Dec 2017 15:45:40 +0100 |
* 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".
---
gnu/packages/avr.scm | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/avr.scm b/gnu/packages/avr.scm
index ecb7cd19a..60bcbe754 100644
--- a/gnu/packages/avr.scm
+++ b/gnu/packages/avr.scm
@@ -61,7 +61,16 @@
`(delete "--disable-multilib" ,flags))))
(native-search-paths
(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")))
(search-path-specification
(variable "CROSS_LIBRARY_PATH")
@@ -71,7 +80,10 @@
(package
(inherit avr-gcc-4.9)
(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)
(package
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#24416: [PATCH] gnu: avr-gcc: Fix compiler lookup paths.,
Danny Milosavljevic <=