guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

04/05: gnu: avr-libc: Unset CPATH to fix the build.


From: guix-commits
Subject: 04/05: gnu: avr-libc: Unset CPATH to fix the build.
Date: Thu, 19 Sep 2019 15:33:55 -0400 (EDT)

rekado pushed a commit to branch core-updates
in repository guix.

commit 923b2b5a48de6c986cab26ee45db1f0e9aaa7269
Author: Ricardo Wurmus <address@hidden>
Date:   Thu Sep 19 15:56:39 2019 +0200

    gnu: avr-libc: Unset CPATH to fix the build.
    
    * gnu/packages/avr.scm (avr-libc)[arguments]: Unset CPATH variable.
---
 gnu/packages/avr.scm | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/avr.scm b/gnu/packages/avr.scm
index 6eb0ad8..1f99f63 100644
--- a/gnu/packages/avr.scm
+++ b/gnu/packages/avr.scm
@@ -97,11 +97,12 @@
        (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)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]