diff --git a/pkgs/servers/http/apache-httpd/2.2.nix b/pkgs/servers/http/apache-httpd/2.2.nix index ba0bde633584..23d18ad7c9c6 100644 --- a/pkgs/servers/http/apache-httpd/2.2.nix +++ b/pkgs/servers/http/apache-httpd/2.2.nix @@ -29,7 +29,7 @@ stdenv.mkDerivation rec { NIX_CFLAGS_COMPILE = "-iquote ${apr}/include/apr-1"; # Required for ‘pthread_cancel’. - NIX_LDFLAGS = "-lgcc_s"; + NIX_LDFLAGS = (if stdenv.isDarwin then "" else "-lgcc_s"); configureFlags = '' --with-z=${zlib}