Skip to content

Commit

Permalink
openldap: Use a global localstatedir
Browse files Browse the repository at this point in the history
(cherry picked from commit c3b41a7)
  • Loading branch information
shlevy committed Sep 21, 2017
1 parent b7e4857 commit f22388e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkgs/development/libraries/openldap/default.nix
Expand Up @@ -20,11 +20,12 @@ stdenv.mkDerivation rec {
"--disable-dependency-tracking" # speeds up one-time build
"--enable-modules"
"--sysconfdir=/etc"
"--localstatedir=/var"
] ++ stdenv.lib.optional (openssl == null) "--without-tls"
++ stdenv.lib.optional (cyrus_sasl == null) "--without-cyrus-sasl"
++ stdenv.lib.optional stdenv.isFreeBSD "--with-pic";

installFlags = [ "sysconfdir=$(out)/etc" ];
installFlags = [ "sysconfdir=$(out)/etc" "localstatedir=$(out)/var" ];

# 1. Fixup broken libtool
# 2. Libraries left in the build location confuse `patchelf --shrink-rpath`
Expand Down

0 comments on commit f22388e

Please sign in to comment.