mruby: Fixes build on Linux
I'm not sure of the semantics of `gcc` vs. `ld` for linking, but it
makes the difference between working and:
```
/nix/store/gpc2wld1s0c6qzx9326cwn1wcx29xzsj-binutils-2.30/bin/ld: warning: cannot find entry symbol _start; defaulting to 0000000000401100
```
commitf84715501453f17a481a918e45b33ad426d0be14
authorSamuel Dionne-Riel <samuel@dionne-riel.com>
dateThu 9 Aug 2018, 19:10 (8 years ago)
parentc26a6db
pkgs/development/compilers/mruby/default.nix+4
@@ -13,6 +13,10 @@ stdenv.mkDerivation rec {
1313
1414 nativeBuildInputs = [ ruby bison ];
1515
16+ # Necessary so it uses `gcc` instead of `ld` for linking.
17+ # https://github.com/mruby/mruby/blob/35be8b252495d92ca811d76996f03c470ee33380/tasks/toolchains/gcc.rake#L25
18+ preBuild = if stdenv.isLinux then "unset LD" else null;
19+
1620 installPhase = ''
1721 mkdir $out
1822 cp -R build/host/{bin,lib} $out