From: Danny Milosavljevic <dannym@scratchpost.org>
To: "Thompson, David" <dthompson2@worcester.edu>
Cc: 24416@debbugs.gnu.org
Subject: bug#24416: [PATCH] gnu: avr-gcc: Fix compiler lookup paths.
Date: Fri, 22 Dec 2017 15:45:40 +0100 [thread overview]
Message-ID: <20171222154540.1444b5e6@scratchpost.org> (raw)
In-Reply-To: <CAJ=RwfbF+75d=E+mZ-_nNoHnRYL7Uy8m=CsQRGTwLi6jDQ-b4w@mail.gmail.com>
* 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
next prev parent reply other threads:[~2017-12-22 14:46 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-11 23:23 bug#24416: avr-gcc@5 is broken Thompson, David
2016-09-12 6:49 ` Danny Milosavljevic
2016-09-12 15:29 ` Thompson, David
2016-09-13 9:18 ` Danny Milosavljevic
2017-12-22 14:45 ` Danny Milosavljevic [this message]
2020-03-01 6:42 ` bug#24416: [PATCH] gnu: avr-gcc: Fix compiler lookup paths Arun Isaac
2020-03-01 12:25 ` Danny Milosavljevic
2020-05-13 19:28 ` Efraim Flashner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171222154540.1444b5e6@scratchpost.org \
--to=dannym@scratchpost.org \
--cc=24416@debbugs.gnu.org \
--cc=dthompson2@worcester.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.