guix-commits
[Top][All Lists]
Advanced

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

03/03: gnu: gcc > 5: Use 'CPATH' instead of 'C_INCLUDE_PATH' & co.


From: Ludovic Courtès
Subject: 03/03: gnu: gcc > 5: Use 'CPATH' instead of 'C_INCLUDE_PATH' & co.
Date: Mon, 7 May 2018 06:11:33 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 91a56b4ab5e714e230c0088fb9f5ce0519efe1a0
Author: Ludovic Courtès <address@hidden>
Date:   Mon May 7 12:02:23 2018 +0200

    gnu: gcc > 5: Use 'CPATH' instead of 'C_INCLUDE_PATH' & co.
    
    Partly addresses <https://bugs.gnu.org/30756>.
    Reported by julien lepiller <address@hidden>,
    Marius Bakke <address@hidden>,
    and Giel van Schijndel <address@hidden>
    
    * gnu/packages/gcc.scm (gcc-6)[native-search-paths]: New field.
---
 gnu/packages/gcc.scm | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm
index 62b8968..ba2fce6 100644
--- a/gnu/packages/gcc.scm
+++ b/gnu/packages/gcc.scm
@@ -476,7 +476,17 @@ Go.  It also includes runtime support libraries for these 
languages.")
                     "pa" "sh" "tilepro" "xtensa")))))
     (inputs
      `(("isl" ,isl)
-       ,@(package-inputs gcc-4.7)))))
+       ,@(package-inputs gcc-4.7)))
+
+    (native-search-paths
+     ;; We have to use 'CPATH' for GCC > 5, not 'C_INCLUDE_PATH' & co., due to
+     ;; <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70129>.
+     (list (search-path-specification
+            (variable "CPATH")
+            (files '("include")))
+           (search-path-specification
+            (variable "LIBRARY_PATH")
+            (files '("lib" "lib64")))))))
 
 (define-public gcc-7
   (package



reply via email to

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