From 6bdafbad9b573720b0e1f42508bff0a614b6871a Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Tue, 21 Jan 2014 16:11:29 -0500 Subject: [PATCH] Build static libs with gcc This was the behavior pre stdenv-updates and is needed by some users Signed-off-by: Shea Levy --- pkgs/development/compilers/gcc/4.8/default.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkgs/development/compilers/gcc/4.8/default.nix b/pkgs/development/compilers/gcc/4.8/default.nix index 38180990b83..96f1cf87e93 100644 --- a/pkgs/development/compilers/gcc/4.8/default.nix +++ b/pkgs/development/compilers/gcc/4.8/default.nix @@ -306,9 +306,7 @@ stdenv.mkDerivation ({ ''} ''; - # 'iant' at #go-nuts@freenode, gccgo maintainer, said that - # they have a bug in 4.7.1 if adding "--disable-static" - dontDisableStatic = langGo || staticCompiler; + dontDisableStatic = true; configureFlags = " ${if stdenv.isSunOS then @@ -339,6 +337,7 @@ stdenv.mkDerivation ({ --disable-libstdcxx-pch --without-included-gettext --with-system-zlib + --enable-static --enable-languages=${ concatStrings (intersperse "," ( optional langC "c"