3
0
Fork 0
forked from mirrors/nixpkgs

gfortran: fix darwin build on hydra

All the warnings about unused -isystem arguments causes the build log to
exceed the hydra limit.
This commit is contained in:
Daiderd Jordan 2018-06-24 14:59:18 +02:00
parent 4cd108043c
commit 222524b5e6
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -254,6 +254,9 @@ stdenv.mkDerivation ({
++ (optional hostPlatform.isDarwin targetPackages.stdenv.cc.bintools)
;
# TODO: Use optionalString with next rebuild.
${if (stdenv.cc.isClang && langFortran) then "NIX_CFLAGS_COMPILE" else null} = "-Wno-unused-command-line-argument";
NIX_LDFLAGS = stdenv.lib.optionalString hostPlatform.isSunOS "-lm -ldl";
preConfigure = stdenv.lib.optionalString (hostPlatform.isSunOS && hostPlatform.is64bit) ''