3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/build-support/gcc-cross-wrapper
Lluís Batlle i Rossell 6f3630e128 Attention, people who care on the builders for native builds. In the stdenv
derivation, the "buildInputs" in every stdenv mkDerivation don't map now
directly to the environment
variable "buildInputs" in the builder, but "buildNativeInputs". So, the inputs
build by the native compiler.
When cross compiling, they will map to the environment variable "buildInputs"
(yes, now the same name), which means does to be built with the cross compiler.

I think I improved the naming of variables a bit. There was a big mess,
specially in the stdenv adapter for cross building, and also in the default
builder script.

I also tried to add proper manager of propagatedInputBuilds, these being
propagated considering the host or build origin of that input build (so, at the
end, being those propagatedInputBuilds being propagated properly to the native
or the cross compiler.


svn path=/nixpkgs/branches/stdenv-updates/; revision=18477
2009-11-19 23:05:11 +00:00
..
add-flags add a wrapper for cross compilers, which makes the correct link to the cross compiler. Only works for "gcc", haven't tried for g++ and the others 2005-11-29 01:40:33 +00:00
builder.sh Fixing the uboot cross-build. 2009-11-19 21:43:03 +00:00
default.nix Trying to move all stdenv cross-compiling details out of the stdenv expression, 2009-11-17 21:14:57 +00:00
gcc-wrapper.sh * "." -> "source". 2005-12-05 14:11:09 +00:00
ld-wrapper.sh * "." -> "source". 2005-12-05 14:11:09 +00:00
setup-hook.sh Attention, people who care on the builders for native builds. In the stdenv 2009-11-19 23:05:11 +00:00
utils.sh add a wrapper for cross compilers, which makes the correct link to the cross compiler. Only works for "gcc", haven't tried for g++ and the others 2005-11-29 01:40:33 +00:00