|
|
|
@ -28,12 +28,13 @@ stdenv.mkDerivation rec { |
|
|
|
|
"--disable-dependency-tracking" # speeds up one-time build |
|
|
|
|
"--enable-modules" |
|
|
|
|
"--sysconfdir=/etc" |
|
|
|
|
"--localstatedir=/var" |
|
|
|
|
"--enable-crypt" |
|
|
|
|
] ++ 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` |
|
|
|
|