From 294f158558279bb25ad64b08ffb74281ba9da78d Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Sun, 27 Mar 2016 16:00:36 +0200 Subject: [PATCH 1/9] gnu: gcc: use CPATH, fixes cross builds. * gnu/packages/gcc (gcc): Use CPATH instead of C_INCLUDE_PATH. Fixes usage of native glibc headers when cross-compiling. --- gnu/packages/gcc.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm index bdcb275..fc0ef6e 100644 --- a/gnu/packages/gcc.scm +++ b/gnu/packages/gcc.scm @@ -311,7 +311,7 @@ where the OS part is overloaded to denote a specific ABI---into GCC ;; treated as "system headers" (headers exempt from warnings) just like ;; the typical /usr/include headers on an FHS system. (list (search-path-specification - (variable "C_INCLUDE_PATH") + (variable "CPATH") (files '("include"))) (search-path-specification (variable "CPLUS_INCLUDE_PATH") -- 2.7.3