From 6befdb7d137948045c5691c03e46b122fa73be60 Mon Sep 17 00:00:00 2001 From: Yann Dupont Date: Sun, 2 May 2021 15:12:07 +0200 Subject: [PATCH] more from gcc.scm --- gnu/packages/glicid.scm | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/gnu/packages/glicid.scm b/gnu/packages/glicid.scm index 0eb1de7..45222bf 100644 --- a/gnu/packages/glicid.scm +++ b/gnu/packages/glicid.scm @@ -92,6 +92,17 @@ as the 'native-search-paths' field." ".*(c\\+\\+|cpp|g\\+\\+|gcov|gcc|gcc-.*)")) #t)))))))) +(define %generic-search-paths + ;; This is the language-neutral search path for GCC. Entries in $CPATH are + ;; not considered "system headers", which means GCC can raise warnings for + ;; issues in those headers. 'CPATH' is the only one that works for + ;; front-ends not in the C family. + (list (search-path-specification + (variable "CPATH") + (files '("include"))) + (search-path-specification + (variable "LIBRARY_PATH") + (files '("lib" "lib64")))))