gnu: cross-base: Distinguish cross Linux headers from native headers.
authorLudovic Courtès <ludo@gnu.org>
Sat, 18 Jul 2015 22:15:44 +0000 (00:15 +0200)
committerLudovic Courtès <ludo@gnu.org>
Sat, 18 Jul 2015 22:15:44 +0000 (00:15 +0200)
commitaa27987f71cb8afa698ede551e20b1248f160113
treeed6f3cc1e79aa849db010f21debccde09a04f9e4
parent2e839545c7f363b50ae760c9b9c15da9e7619da9
gnu: cross-base: Distinguish cross Linux headers from native headers.

Commit c6d33a9 provided an incorrect fix, whereby the "linux-headers" key
would be used twice in %BUILD-INPUTS and the 'set-cross-path' phase would
refer to the first one of them, which happened to be the native headers, and
not the target headers.  This patch solves the problem by removing the
ambiguity.

* gnu/packages/cross-base.scm (cross-gcc-arguments)[set-cross-path]: Remove to
  "xlinux-headers" instead of "linux-headers".
  (cross-gcc): When LIBC is true, add explicit "xlinux-headers" input, taken
  from LIBC's propagated inputs.
gnu/packages/cross-base.scm