diff options
Diffstat (limited to 'pkgs/os-specific/linux/dietlibc/default.nix')
-rw-r--r-- | pkgs/os-specific/linux/dietlibc/default.nix | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/pkgs/os-specific/linux/dietlibc/default.nix b/pkgs/os-specific/linux/dietlibc/default.nix index 67bdaf15c18c..708933ffa33c 100644 --- a/pkgs/os-specific/linux/dietlibc/default.nix +++ b/pkgs/os-specific/linux/dietlibc/default.nix @@ -11,8 +11,16 @@ stdenv.mkDerivation { builder = ./builder.sh; inherit (stdenv) glibc; - # dietlibc's sigcontext.h provides a macro called PC(), which is - # rather intrusive (e.g., binutils fails to compile because of it). - # Rename it. - patches = [./pc.patch]; + patches = [ + + # dietlibc's sigcontext.h provides a macro called PC(), which is + # rather intrusive (e.g., binutils fails to compile because of + # it). Rename it. + ./pc.patch + + # wchar.h declares lots of functions that don't actually exist. + # Remove them. + ./no-wchar.h + + ]; } |