diff options
author | Ludovic Courtès <ludo@gnu.org> | 2013-05-24 21:55:52 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2013-05-24 21:55:52 +0200 |
commit | 17bb886ff42afe7caa7b89878a563243239f9698 (patch) | |
tree | 7c53b1bb3c77fc844af6bfb9cdf27f4e17848804 /gnu | |
parent | 248d08ebf0f2333d13c36358a4e1556c7114048b (diff) | |
download | guix-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')
-rw-r--r-- | gnu/packages/cross-base.scm | 12 |
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 |