nixpkgs/pkgs
aszlig 9a0a85827c
gcc-4.8: Hook in cross-darwin libc and binutils.
Let's finally hook everything into the existing cross-building
infrastructure. We're using --with-sysroot instead of --with-headers
here, because the XCode SDK contains references to /usr/lib.

I've tried to patch those references, but unfortunately (at least with
install_name_tool) it isn't possible to change those refernces in stub
dylibs.

So after bugging @tpoechtrager with annoying questions (thanks again), I
think my initial approach (patching the SDK itself and/or regenerating
the dylib stubs) was way to complicated so I ended up with this
implementation.

Also, I've added a condition to binutilsCross to use cctools if the libc
is set to libSystem. This might need some cleanups someday, mainly to
figure out how to properly bridge cctools and binutils.

So, as an example on how to cross-compile GNU Hello to Darwin, you can
use something like this:

(import <nixpkgs> {
  crossSystem = {
    config = "x86_64-apple-darwin13";
    arch = "x86_64";
    libc = "libSystem";
    platform = {};
  };
}).hello.crossDrv

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2014-03-12 10:00:44 +01:00
..
applications xmobar: drop obsolete patch files 2014-03-03 22:12:28 +01:00
build-support vm/windows: Allow to specify a different arch. 2014-03-04 09:22:18 +01:00
data manpages: update from 3.60 to 3.61 2014-03-01 05:13:49 +02:00
desktops gnome3.gitg, gnome3.empathy: fix icons 2014-02-28 10:17:49 +01:00
development gcc-4.8: Hook in cross-darwin libc and binutils. 2014-03-12 10:00:44 +01:00
games gtypist: update from 2.9.3 to 2.9.4 2014-03-03 11:10:24 +01:00
misc xlockmore: update from 5.38 to 5.43 2014-03-03 11:10:26 +01:00
os-specific Add a cross-platform port of cctools. 2014-03-12 10:00:44 +01:00
servers bind: update to version 9.9.5-W1 (fixes CVE-2013-6230 and CVE 2014-0591) 2014-03-03 13:10:05 +01:00
shells fish: Fix propagatedBuildInputs and other assorted changes 2014-02-15 12:17:06 +01:00
stdenv Move generation of coverage reports from nixos/lib/testing to releaseTools 2014-03-03 13:57:08 +01:00
test
tools Merge pull request #1867 from thoughtpolice/fixes 2014-03-03 20:36:08 +01:00
top-level gcc-4.8: Hook in cross-darwin libc and binutils. 2014-03-12 10:00:44 +01:00