aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/cross-base.scm
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/cross-base.scm
parent248d08ebf0f2333d13c36358a4e1556c7114048b (diff)
downloadpatches-17bb886ff42afe7caa7b89878a563243239f9698.tar
patches-17bb886ff42afe7caa7b89878a563243239f9698.tar.gz
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/cross-base.scm')
-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