diff --git a/pkgs/servers/http/apache-httpd/2.4.nix b/pkgs/servers/http/apache-httpd/2.4.nix index 043a15a984b..01a41cb3e63 100644 --- a/pkgs/servers/http/apache-httpd/2.4.nix +++ b/pkgs/servers/http/apache-httpd/2.4.nix @@ -26,6 +26,9 @@ stdenv.mkDerivation rec { optional ldapSupport openldap ++ # there is no --with-ldap flag optional libxml2Support libxml2; # there is --with-libxml2, but it doesn't work + # Required for ‘pthread_cancel’. + NIX_LDFLAGS = "-lgcc_s"; + configureFlags = '' --with-apr=${apr} --with-apr-util=${aprutil}