From fec867b5f29fbfb4f3485d4eaba7f56ca38c0de8 Mon Sep 17 00:00:00 2001 From: Armijn Hemel Date: Fri, 30 Dec 2005 14:45:27 +0000 Subject: [PATCH] add what should be done after completing the toolchain and a note of warning that many packages cannot be succesfully cross compiled. svn path=/nixpkgs/trunk/; revision=4457 --- maintainers/docs/cross.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/maintainers/docs/cross.txt b/maintainers/docs/cross.txt index c79c571dee9..5ae2787d799 100644 --- a/maintainers/docs/cross.txt +++ b/maintainers/docs/cross.txt @@ -314,3 +314,18 @@ too. Earlier on in the build process these flags are used to compile important files like libgcc.a by the host system gcc, which does need to be linked to glibc. To make this work correctly you will need to carefully juggle with compilation flags. This is still work in progress for Nix. + + +--- + +After succesfully completing the whole toolchain you can start building +packages with the newly built tools. To make everything build correctly +you will need a stdenv for your target platform. Setting up this platform +will take some effort. Right now there is a very experimental setup for +arm-linux, which needs to be cleaned up before it is production ready. + +Please note that many packages are not well suited for cross-compilation. +Even though the package itself might be very well portable often the +buildscripts are not. One thing that we have seen that causes frequent +build failures is the use of the LD variable. This is often set to 'ld' +and not $(CROSS)-ld.