From fd1fde6041b7f221bed114593944365d21cb925c Mon Sep 17 00:00:00 2001
From: Ludovic Courtès <ludo@gnu.org>
Date: Fri, 7 Feb 2020 23:26:38 +0100
Subject: gnu: rust: Switch to 'C_INCLUDE_PATH'.

* gnu/packages/rust.scm (rust-1.19)[native-search-paths]: Remove "CPATH"
and add "C_INCLUDE_PATH" and "CPLUS_INCLUDE_PATH" instead.
---
 gnu/packages/rust.scm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

(limited to 'gnu')

diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm
index 8bed56ff72..97ba882553 100644
--- a/gnu/packages/rust.scm
+++ b/gnu/packages/rust.scm
@@ -413,8 +413,11 @@ test = { path = \"../libtest\" }
     ;; modules (see <https://bugs.gnu.org/31392>).
     (native-search-paths
      (list (search-path-specification
-            (variable "CPATH")
+            (variable "C_INCLUDE_PATH")
             (files '("include")))
+           (search-path-specification
+            (variable "CPLUS_INCLUDE_PATH")
+            (files '("include/c++" "include")))
            (search-path-specification
             (variable "LIBRARY_PATH")
             (files '("lib" "lib64")))))
-- 
cgit 1.4.1