From 909a46ff7763ed3b124ca9e56713dcc4f81bc189 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Sat, 16 Apr 2016 08:40:12 +0200 Subject: [PATCH] Fix gccgo by un-splitting lib output (like gcj) --- pkgs/development/compilers/gcc/4.9/default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/development/compilers/gcc/4.9/default.nix b/pkgs/development/compilers/gcc/4.9/default.nix index 74612ae77548..2d568980fd45 100644 --- a/pkgs/development/compilers/gcc/4.9/default.nix +++ b/pkgs/development/compilers/gcc/4.9/default.nix @@ -73,8 +73,8 @@ let version = "4.9.3"; ++ optional langAda ../gnat-cflags.patch ++ optional langFortran ../gfortran-driving.patch # The NXConstStr.patch can be removed at 4.9.4 - ++ optional stdenv.isDarwin ../gfortran-darwin-NXConstStr.patch; - + ++ optional stdenv.isDarwin ../gfortran-darwin-NXConstStr.patch; + javaEcj = fetchurl { # The `$(top_srcdir)/ecj.jar' file is automatically picked up at # `configure' time. @@ -218,7 +218,8 @@ stdenv.mkDerivation ({ inherit patches; - outputs = if langJava then ["out" "man" "info"] else [ "out" "lib" "man" "info" ]; + outputs = if langJava || langGo then ["out" "man" "info"] + else [ "out" "lib" "man" "info" ]; setOutputFlags = false; NIX_NO_SELF_RPATH = true; @@ -316,7 +317,7 @@ stdenv.mkDerivation ({ ) fi '' - + stdenv.lib.optionalString langJava '' + + stdenv.lib.optionalString (langJava || langGo) '' export lib=$out; '' ;