summary refs log tree commit diff
path: root/pkgs/tools/networking/dhcp
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/networking/dhcp')
-rw-r--r--pkgs/tools/networking/dhcp/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/tools/networking/dhcp/default.nix b/pkgs/tools/networking/dhcp/default.nix
index de6e08df7b67..14dccbe68966 100644
--- a/pkgs/tools/networking/dhcp/default.nix
+++ b/pkgs/tools/networking/dhcp/default.nix
@@ -20,6 +20,10 @@ stdenv.mkDerivation rec {
   # http://www.mail-archive.com/blfs-book@linuxfromscratch.org/msg13013.html
   NIX_CFLAGS_COMPILE = "-D_GNU_SOURCE";
 
+  # It would automatically add -Werror, which disables build in gcc 4.4
+  # due to an uninitialized variable.
+  CFLAGS = "-g -O2 -Wall";
+
   buildInputs = [makeWrapper];
 
   postInstall =