gnu: cross-gcc: Set the right search paths.

* gnu/packages/cross-base.scm (cross-gcc): Override `search-paths' and
  `native-search-paths'.
This commit is contained in:
Ludovic Courtès 2013-05-24 21:55:52 +02:00
parent 248d08ebf0
commit 17bb886ff4
1 changed files with 11 additions and 1 deletions

View File

@ -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