ponyc: FIX $CC undefined, using gcc as the linker

https://github.com/ponylang/ponyc/issues/2482
This commit is contained in:
Kamil Chmielewski 2018-01-11 03:16:01 +01:00
parent f607771d0f
commit a628055e5c

View File

@ -69,8 +69,10 @@ stdenv.mkDerivation ( rec {
+ stdenv.lib.optionalString stdenv.isDarwin '' bits=64 ''
+ stdenv.lib.optionalString (stdenv.isDarwin && (!lto)) '' lto=no ''
+ '' install
mv $out/bin/ponyc $out/bin/ponyc.wrapped
makeWrapper $out/bin/ponyc.wrapped $out/bin/ponyc \
wrapProgram $out/bin/ponyc \
--prefix PATH ":" "${stdenv.cc}/bin" \
--set-default CC "$CC" \
--prefix PONYPATH : "$out/lib" \
--prefix PONYPATH : "${stdenv.lib.getLib pcre2}/lib" \
--prefix PONYPATH : "${stdenv.lib.getLib libressl}/lib"