summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2013-05-24 21:55:52 +0200
committerLudovic Courtès <ludo@gnu.org>2013-05-24 21:55:52 +0200
commit17bb886ff42afe7caa7b89878a563243239f9698 (patch)
tree7c53b1bb3c77fc844af6bfb9cdf27f4e17848804
parent248d08ebf0f2333d13c36358a4e1556c7114048b (diff)
gnu: cross-gcc: Set the right search paths.
* gnu/packages/cross-base.scm (cross-gcc): Override `search-paths' and `native-search-paths'.
-rw-r--r--gnu/packages/cross-base.scm12
1 files changed, 11 insertions, 1 deletions
diff --git a/gnu/packages/cross-base.scm b/gnu/packages/cross-base.scm
index 55670fad967..06e66541de0 100644
--- a/gnu/packages/cross-base.scm
+++ b/gnu/packages/cross-base.scm
@@ -175,7 +175,17 @@ GCC that does not target a libc; otherwise, target that libc."
175 (if libc 175 (if libc
176 `(("libc" ,libc) 176 `(("libc" ,libc)
177 ,@inputs) 177 ,@inputs)
178 inputs)))))) 178 inputs))))
179
180 ;; Only search target inputs, not host inputs.
181 (search-paths
182 (list (search-path-specification
183 (variable "CROSS_CPATH")
184 (directories '("include")))
185 (search-path-specification
186 (variable "CROSS_LIBRARY_PATH")
187 (directories '("lib" "lib64")))))
188 (native-search-paths '())))
179 189
180(define* (cross-libc target 190(define* (cross-libc target
181 #:optional 191 #:optional