aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
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 /gnu/packages
parent248d08ebf0f2333d13c36358a4e1556c7114048b (diff)
downloadguix-17bb886ff42afe7caa7b89878a563243239f9698.tar.gz
guix-17bb886ff42afe7caa7b89878a563243239f9698.zip
gnu: cross-gcc: Set the right search paths.
* gnu/packages/cross-base.scm (cross-gcc): Override `search-paths' and `native-search-paths'.
Diffstat (limited to 'gnu/packages')
-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 55670fad96..06e66541de 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."
(if libc
`(("libc" ,libc)
,@inputs)
- inputs))))))
+ inputs))))
+
+ ;; Only search target inputs, not host inputs.
+ (search-paths
+ (list (search-path-specification
+ (variable "CROSS_CPATH")
+ (directories '("include")))
+ (search-path-specification
+ (variable "CROSS_LIBRARY_PATH")
+ (directories '("lib" "lib64")))))
+ (native-search-paths '())))
(define* (cross-libc target
#:optional