nixpkgs/pkgs/development/compilers
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
..
abc
adobe-flex-sdk
Agda-executable
aldor
aspectj
ats2 Bumping ATS/Postiats version to 0.0.5. 2014-02-09 16:26:46 +01:00
avra
bigloo
ccl
chicken Chicken: Fix build on OS X. 2013-11-29 11:47:00 +01:00
clean
closure Replace lib/java -> share/java 2014-01-09 13:01:38 +01:00
cmucl
cudatoolkit cuda: install the SDK using multiple-outputs support 2014-01-29 15:48:55 +01:00
dev86 Apply makeOverridable to stdenv 2014-02-05 19:18:33 +01:00
dmd dmd: Add (D language compiler). 2014-01-11 19:08:40 +01:00
ecl
edk2 edk2/OVMF: Update 2014-02-03 18:32:21 -05:00
elm haskell-Elm: update to version 0.11 2014-01-26 00:02:33 +01:00
epic
eql
flapjax
fpc
fsharp
gambit
gcc gcc-4.8: Hook in cross-darwin libc and binutils. 2014-03-12 10:00:44 +01:00
gcl Update GCL source to latest release 2014-02-02 21:36:22 +04:00
ghc ghc: Fix building on Darwin 2014-01-30 13:45:48 +01:00
gnatboot
go go: removeGodocExternals no longer needed 2013-12-23 10:24:32 +01:00
gprolog gprolog: patch hard-coded path to the temporary file /tmp/make.log 2014-01-21 20:07:26 +01:00
gwt
gwydion-dylan
haxe
hugs
iasl
idris haskell-idris: update to version 0.9.11.2 2014-02-13 10:57:43 +01:00
ikarus
jdk Fix tarball 2014-01-22 15:54:40 -05:00
jhc
jikes
julia
lessc
llvm llvm: remove duplicate ncurses buildInput 2014-02-06 10:01:13 +01:00
mcpp mcpp: Add package 2014-01-30 21:56:17 -06:00
mentor
meta-environment/meta-build-env
mit-scheme
mlton mlton: fix build with latest version. 2014-02-03 23:30:18 +01:00
mono
mozart
nasm nasm: update from 2.10 to 2.11.01 2014-02-24 22:04:40 +01:00
neko
nvidia-cg-toolkit
ocaml Fix some "meta.licenses" attributes 2014-01-25 03:04:46 +01:00
opa
opencxx
openjdk openjdk: Hackery to ensure that tools.jar is found 2014-01-25 03:04:46 +01:00
openjdk-darwin openjdk-darwin: Behave the same as openjdk-linux 2014-01-28 12:10:27 +01:00
orc orc: update from 0.4.17 to 0.4.18 2013-12-21 02:28:25 +02:00
pakcs pakcs: advance version to 1.11.3, which is compatible with SWI Prolog 6.6 2014-02-05 23:06:51 +01:00
path64
polyml PolyML expression: Factorize version number in a separate variable 2014-01-15 15:58:27 +01:00
qcmm
qi
rdmd rdmd: Add (D language compiler helper). 2014-01-11 19:08:40 +01:00
roadsend
rust rust: fixed i686 build 2014-01-22 19:29:20 +01:00
sbcl Update SBCL to 1.1.14 2013-12-30 02:30:55 +04:00
scala
sdcc Whitespace fixes in package expressions I maintain 2014-01-02 17:58:08 +01:00
smlnj
stalin
strategoxt
swi-prolog swi-prolog: update to version 6.6.1 2014-01-13 17:10:11 +01:00
tinycc
uhc
urweb
vala vala: Update to 0.23.2 2014-02-11 23:35:00 +08:00
visual-c++
vs90wrapper
webdsl
yap
yasm xbmc: 12.2 -> 12.3 2013-12-29 17:53:40 +01:00