summary refs log tree commit diff
path: root/pkgs/development/compilers/gcc/4.6/default.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2013-06-12 16:11:14 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2013-06-12 16:11:14 +0200
commitdbe432e6f4502fc7b4e290d1b3356083bd93b099 (patch)
tree1cf404f51c52c717a4b5b004f91ab882860f4346 /pkgs/development/compilers/gcc/4.6/default.nix
parent2cfeca153cd9418d91c301e182caee1d3f6262e7 (diff)
downloadnixlib-dbe432e6f4502fc7b4e290d1b3356083bd93b099.tar
nixlib-dbe432e6f4502fc7b4e290d1b3356083bd93b099.tar.gz
nixlib-dbe432e6f4502fc7b4e290d1b3356083bd93b099.tar.bz2
nixlib-dbe432e6f4502fc7b4e290d1b3356083bd93b099.tar.lz
nixlib-dbe432e6f4502fc7b4e290d1b3356083bd93b099.tar.xz
nixlib-dbe432e6f4502fc7b4e290d1b3356083bd93b099.tar.zst
nixlib-dbe432e6f4502fc7b4e290d1b3356083bd93b099.zip
gcc: Put runtime libraries in a separate output
GCC provides a number of libraries that are used by programs built by
GCC, in particular libgcc_s.so and libstdc++.so.  This caused programs
that used these libraries to have a runtime dependency on all of GCC
(~77 MiB).  Now they only depend on the "lib" output of GCC (~1.6
MiB).

With this and previous multiple-output improvements, closure sizes are
reduced a lot:

hello:       41 MiB -> 22 MiB
patchelf:   118 MiB -> 23 MiB
pan:        364 MiB -> 90 MiB
Diffstat (limited to 'pkgs/development/compilers/gcc/4.6/default.nix')
-rw-r--r--pkgs/development/compilers/gcc/4.6/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/compilers/gcc/4.6/default.nix b/pkgs/development/compilers/gcc/4.6/default.nix
index af6e9ab0ee19..476ddaa84091 100644
--- a/pkgs/development/compilers/gcc/4.6/default.nix
+++ b/pkgs/development/compilers/gcc/4.6/default.nix
@@ -192,6 +192,10 @@ stdenv.mkDerivation ({
     inherit langC langCC langFortran langJava langAda langGo;
   };
 
+  outputs = [ "out" "lib" ];
+
+  setOutputConfigureFlags = false;
+
   inherit patches enableMultilib;
 
   libc_dev = stdenv.gcc.libc_dev;