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:
parent
4cd108043c
commit
222524b5e6
|
@ -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) ''
|
||||
|
|
Loading…
Reference in a new issue