From d474d5d0c6ca0aa085e68533b1f16ed29fd10f7c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= <ludo@gnu.org>
Date: Sun, 31 Aug 2014 22:18:47 +0200
Subject: [PATCH] gnu: gcc-toolchain: Inherit GCC's search path specifications.

Reported by Federico Beffa <beffa@ieee.org>.

* gnu/packages/commencement.scm (gcc-toolchain): Add
  'native-search-paths' and 'search-paths' fields.
---
 gnu/packages/commencement.scm | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gnu/packages/commencement.scm b/gnu/packages/commencement.scm
index 6c49d0a9f59..a1d2fcaaed0 100644
--- a/gnu/packages/commencement.scm
+++ b/gnu/packages/commencement.scm
@@ -732,6 +732,10 @@ (define (gcc-toolchain gcc)
                    (union-build (assoc-ref %outputs "debug")
                                 (list (assoc-ref %build-inputs
                                                  "libc-debug"))))))
+
+    (native-search-paths (package-native-search-paths gcc))
+    (search-paths (package-search-paths gcc))
+
     (license (package-license gcc))
     (synopsis "Complete GCC tool chain for C/C++ development")
     (description
-- 
GitLab