summary refs log tree commit diff
path: root/pkgs/top-level/all-packages.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/top-level/all-packages.nix')
-rw-r--r--pkgs/top-level/all-packages.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 9f490c2104dd..95e4f7645db5 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -79,6 +79,9 @@ rec {
   useDietLibC = stdenv: stdenv //
     { mkDerivation = args: stdenv.mkDerivation (args // {
         NIX_CFLAGS_LINK = "-static";
+
+        # libcompat.a contains some commonly used functions.
+        NIX_LDFLAGS = "-lcompat";
         
         # These are added *after* the command-line flags, so we'll
         # always optimise for size.
@@ -979,8 +982,9 @@ rec {
     cross = "sparc-linux";
   };
 
-  binutilsStatic = import ../development/tools/misc/binutils-static {
-    inherit fetchurl stdenv noSysDirs;
+  binutilsDiet = import ../development/tools/misc/binutils/binutils-2.17.nix {
+    inherit fetchurl noSysDirs;
+    stdenv = useDietLibC stdenv;
   };
 
   bison = bison1875;